为什么我每次运行IntelliJ IDEA都会显示致命错误?

时间:2019-12-27 04:01:03

标签: java

这是我的代码

error message

/ * 错误:内部错误:(java.io.IOException)无法创建空文件:C:\ Users \ ????????????????????。IdeaIC2019.3 \ system \ compile -server \ codewithsujit_25647921 \ timestamps \ data java.io.IOException:无法创建空文件:C:\ Users \ ????????????????????。IdeaIC2019.3 \ system \ compile-server \ codewithsujit_25647921 \ timestamps \数据     在com.intellij.util.io.PersistentEnumeratorBase。(PersistentEnumeratorBase.java:175)     在com.intellij.util.io.PersistentBTreeEnumerator。(PersistentBTreeEnumerator.java:73)     在com.intellij.util.io.PersistentEnumeratorDelegate。(PersistentEnumeratorDelegate.java:47)     在com.intellij.util.io.PersistentHashMap。(PersistentHashMap.java:149)     在com.intellij.util.io.PersistentHashMap。(PersistentHashMap.java:138)     在com.intellij.util.io.PersistentHashMap。(PersistentHashMap.java:129)     在com.intellij.util.io.PersistentHashMap。(PersistentHashMap.java:121)     在com.intellij.util.io.PersistentHashMap。(PersistentHashMap.java:114)     在org.jetbrains.jps.incremental.storage.JpsPersistentHashMap。(JpsPersistentHashMap.java:20)     在org.jetbrains.jps.incremental.storage.AbstractStateStorage.createMap(AbstractStateStorage.java:118)     在org.jetbrains.jps.incremental.storage.AbstractStateStorage。(AbstractStateStorage.java:26)     在org.jetbrains.jps.incremental.storage.FileTimestampStorage。(FileTimestampStorage.java:27)     在org.jetbrains.jps.incremental.storage.ProjectStamps。(ProjectStamps.java:39)     在org.jetbrains.jps.incremental.storage.ProjectTimestamps。(ProjectTimestamps.java:19)     在org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:111)     在org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:274)     在org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:130)     在org.jetbrains.jps.cmdline.BuildMain $ MyMessageHandler.lambda $ channelRead0 $ 0(BuildMain.java:232)     在java.base / java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)     在java.base / java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:628)     在java.base / java.lang.Thread.run(Thread.java:834) 请执行完整的项目重建(构建|重建项目)* /

1 个答案:

答案 0 :(得分:0)

您缺少花括号。花括号告诉Java类,方法或语句在哪里开始和停止。

public class Main{
    public static void main(String[] args){
        System.out.println("test");
    }
}

您可以阅读有关curly braces here的更多信息。
Intellij还告诉您,您缺少花括号,如此处所示 here
Here is some more information to help you understand.