无法使用Intellij进行编译

无法使用Intellij进行编译

本文介绍了无法使用Intellij进行编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在给JetBrains IntelliJ IDEA 12.0.4一个旋转,并在编译程序时遇到问题。
当我运行程序时,我收到以下错误:

I'm giving JetBrains IntelliJ IDEA 12.0.4 a spin and have run into an issue when compiling programs.When I run a program I get the following error:

   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)

同时出现运行调试。我需要更改哪些设置才能更正用于将其更改为本地类路径和目录的路径?

This occurs with both Run and Debug. What setting do I need to change to correct the paths used to change them to my local classpaths and directories?

推荐答案

您的用户主页似乎位于网络驱动器上,即

It seems that your user home is located on a network drive, which is unsupported by IntelliJ

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

You should copy IDEA_HOME\bin\idea.properties to your home directory and adjust the following paths so that they point to local directories instead:


  • idea.config.path

  • idea.system.path

  • idea.plugins.path

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

See the above link for further details. If you don't want to lose everything you already configured, just move \domain.local\usersfolders\roberth\.IntelliJIdea12 to a local folder.

这篇关于无法使用Intellij进行编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 05:02