我的教授让我们从社区版IntelliJ升级到终极版,并开始使用JDK 9.0而不是1.8并开始使用Scenebuilder。当我尝试构建我的代码虽然我一直得到(访问被拒绝)错误。当我试图打开
时" C:\用户\ USERNAME.IntelliJIdea2017.2 \ SYSTEM \编译服务器\ pt_2_868f9741 \映射"
文件资源管理器中的文件夹,拒绝访问。我已尝试获取该文件夹的所有权,但我无权对其进行任何更改。当我运行在学期早期工作的旧程序时,同样的问题就出现了。
我已经尝试卸载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相同的问题。
答案 0 :(得分:0)
如果您拒绝访问作为输出,请尝试更改除Local Disk C之外的任何本地磁盘中的项目或文件路径;