gpt4 book ai didi

java - IntelliJ(访问被拒绝)

转载 作者:行者123 更新时间:2023-12-03 11:17:13 27 4
gpt4 key购买 nike

我的教授让我们从IntelliJ的社区版本升级到最终版本,并开始使用JDK 9.0和1.8,并开始使用Scenebuilder。当我尝试构建代码时,尽管不断出现(访问被拒绝)错误。当我尝试打开

“C:\Users\USERNAME.IntelliJIdea2017.2\system\compile-server\pt_2_868f9741\mappings”

文件浏览器中的文件夹,访问被拒绝。我已经尝试获取该文件夹的所有权,但是我无权对其进行任何更改。当我运行在本学期早期也运行过的旧程序时,会弹出同样的问题。

我已经尝试过卸载IntelliJ并运行磁盘清理,然后重新安装,但问题仍然存在。

关于出了什么问题或如何解决的任何想法?
我正在运行Windows 10,听说它在访问和所有权等方面存在一些问题,并且是笔记本电脑上的唯一用户。

当我重新启动计算机时,第一次尝试构建项目时,实际上会首先弹出此错误,然后每次出现此错误时,都会出现以下错误。

Error:Internal error: can't save module index: C:\Users\Eric Gonzalez\.IntelliJIdea2017.2\system\compile-server\pt_2_868f9741\jigsaw\module-info.map (Access is denied)

这是错误消息:
`Error:Internal error: (java.io.FileNotFoundException) C:\Users\USERNAME\.IntelliJIdea2017.2\system\compile-server\pt_2_868f9741\mappings\strings.tab (Access is denied)
java.io.FileNotFoundException: C:\Users\USERNAME\.IntelliJIdea2017.2\system\compile-server\pt_2_868f9741\mappings\strings.tab (Access is denied)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:343)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
at com.intellij.util.io.PagedFileStorage.resizeFile(PagedFileStorage.java:355)
at com.intellij.util.io.PagedFileStorage.resize(PagedFileStorage.java:338)
at com.intellij.util.io.ResizeableMappedFile.<init>(ResizeableMappedFile.java:60)
at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:82)
at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:74)
at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:38)
at com.intellij.util.io.PersistentStringEnumerator.<init>(PersistentStringEnumerator.java:53)
at com.intellij.util.io.PersistentStringEnumerator.<init>(PersistentStringEnumerator.java:36)
at org.jetbrains.jps.builders.java.dependencyView.DependencyContext.<init>(DependencyContext.java:77)
at org.jetbrains.jps.builders.java.dependencyView.Mappings.createImplementation(Mappings.java:135)
at org.jetbrains.jps.builders.java.dependencyView.Mappings.<init>(Mappings.java:127)
at org.jetbrains.jps.incremental.storage.BuildDataManager.<init>(BuildDataManager.java:133)
at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:111)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:267)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:236)
at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)
Please perform full project rebuild (Build | Rebuild Project)

我还刚刚在运行Unity时发现了类似的问题。在尝试在Unity中构建项目时,我收到消息
Creating directory Library/SceiptAssemblies failed.
Please ensure there is enough disk space and you have
permissions setup correctly.

再次尝试访问该文件夹,我遇到了与IntelliJ相同的问题。

最佳答案

如果您拒绝访问作为输出,请尝试更改除Local Disk C之外的任何本地磁盘中的项目或文件路径;它对我有用。

关于java - IntelliJ(访问被拒绝),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47172148/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com