2013-03-13 114 views
22

我给JetBrains IntelliJ IDEA 12.0.4一个旋转,并在编译程序时遇到问题。 当我运行一个程序,我得到了以下错误:无法使用Intellij进行编译

Internal error: (java.io.FileNotFoundException) \domain.local\usersfolders\roberth\.IntelliJIdea12\system\compile-server\hibernate_test_1ad22f80\timestamps\data (The system cannot find the path specified) 
java.io.FileNotFoundException: \domain.local\usersfolders\roberth\.IntelliJIdea12\system\compile-server\hibernate_test_1ad22f80\timestamps\data (The system cannot find the path specified) 
    at java.io.RandomAccessFile.open(Native Method) 
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) 
    at com.intellij.util.io.PagedFileStorage.resizeFile(PagedFileStorage.java:324) 
    at com.intellij.util.io.PagedFileStorage.resize(PagedFileStorage.java:308) 
    at com.intellij.util.io.ResizeableMappedFile.resize(ResizeableMappedFile.java:72) 
    at com.intellij.util.io.ResizeableMappedFile.<init>(ResizeableMappedFile.java:46) 
    at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:76) 
    at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:38) 
    at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:31) 
    at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:137) 
    at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:133) 
    at org.jetbrains.jps.incremental.storage.AbstractStateStorage.createMap(AbstractStateStorage.java:122) 
    at org.jetbrains.jps.incremental.storage.AbstractStateStorage.<init>(AbstractStateStorage.java:27) 
    at org.jetbrains.jps.incremental.storage.TimestampStorage.<init>(TimestampStorage.java:21) 
    at org.jetbrains.jps.incremental.storage.ProjectTimestamps.<init>(ProjectTimestamps.java:21) 
    at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:90) 
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:181) 
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:102) 
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:107) 
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:26) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:722) 

出现这种情况既RunDebug。我需要更改哪些设置以更正用于将它们更改为本地类路径和目录的路径?

回答

34

看来你的用户的家位于一个网络驱动器,这是unsupported by IntelliJ

In some environments user's home directory is located on the mapped network drive which is unacceptable for IntelliJ IDEA. You'll notice the huge performance degradation. You may also want to move system directory to the faster or larger drive partition.

您应该复制IDEA_HOME\bin\idea.properties到你的主目录,并让它们指向本地目录,而不是调整以下路径上:

  • idea.config.path
  • idea.system.path
  • idea.plugins.path

有关更多详细信息,请参阅上面的链接。如果您不想丢失已配置的所有内容,只需将\domain.local\usersfolders\roberth\.IntelliJIdea12移至本地文件夹。

+0

非常好,这正是我需要知道的,但无法找到。谢谢:) – 2013-03-13 13:57:48

+0

这对我有效。谢谢。 – mcherm 2013-05-29 19:39:07

+0

我修改了idea.properties(in bin)*和*将它复制回家。仍然构建坚持要给这个错误。 – Synesso 2014-02-04 05:13:10

2

我有完全相同的问题。所以,我编辑的IDEA_HOME \ BIN \ idea.properties文件,并取消注释:

  • idea.config.path
  • idea.system.path
  • idea.plugins.path
  • idea.log 。路径

然后我删除从idea.config.pathidea.system.path${user.home},一切工作正常。

0

以下步骤为我工作:

  1. 关闭的IntelliJ IDEA
  2. 编辑IDEA_HOME \ BIN \ idea.properties包含以下行:

    idea.config.path=C:/Users/<yourUsername>/.IdeaIC/config 
    idea.system.path=C:/Users/<yourUsername>/.IdeaIC/system 
    
  3. 打开的IntelliJ IDEA

    • 现在.IdeaIC文件夹(上面指定的)被自动创建,它具有以下结构:

      .IdeaIC 
          - config 
          - system 
      
5

我得到在窗口ENV下面的错误:

错误:内部错误:(com.intellij.util.io。PersistentEnumeratorBase $ CorruptedException)PersistentEnumerator存储损坏C:\用户> .IntelliJIdea14 \ SYSTEM \编译服务器\ cmx_cdc441bb \ AJ \ aspect_path.dat

,并删除位于上述路径中的.dat文件和我的jetbrain IDE开始编译所有类和问题得到解决。

3

我遇到类似的问题,无法在调试程序时重新加载编译的类。阅读几个博客,并删除编译和编译服务器目录下的C:/Users/<yourUsername>/.IntelliJIdea<version>/system,我可以继续像往常一样使用类重新加载。