私はIntelliJコミュニティ版2016.1をsrcフォルダ内の1つのファイル 'test.java'と共に使用しています。IntelliJは「Javaリソースが存在しません」としてコンパイルできません
私がコンパイルしたり、プロジェクトを作成するたびに、以下のエラーが発生します。何がうまくいかないのですか? 残念ながら、間違っている可能性のある情報はGoogleにはありません。
Information:Using javac 9-ea to compile java sources
Information:java: An exception has occurred in the compiler (9-ea). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
Information:java: at com.sun.tools.javac.code.ModuleFinder.findSingleModule([email protected]/ModuleFinder.java:223)
Information:java: at com.sun.tools.javac.comp.Modules.setCompilationUnitModules([email protected]/Modules.java:347)
Information:java: at com.sun.tools.javac.comp.Modules.enter([email protected]/Modules.java:205)
Information:java: at com.sun.tools.javac.main.JavaCompiler.initModules([email protected]/JavaCompiler.java:1020)
Information:java: at com.sun.tools.javac.main.JavaCompiler.initModules([email protected]/JavaCompiler.java:1012)
Information:java: at com.sun.tools.javac.main.JavaCompiler.compile([email protected]/JavaCompiler.java:906)
Information:java: at com.sun.tools.javac.api.JavacTaskImpl$1.call([email protected]/JavacTaskImpl.java:104)
Information:java: at com.sun.tools.javac.api.JavacTaskImpl$1.call([email protected]/JavacTaskImpl.java:100)
Information:java: at com.sun.tools.javac.api.JavacTaskImpl.handleExceptions([email protected]/JavacTaskImpl.java:135)
Information:java: at com.sun.tools.javac.api.JavacTaskImpl.doCall([email protected]/JavacTaskImpl.java:100)
Information:java: at com.sun.tools.javac.api.JavacTaskImpl.call([email protected]/JavacTaskImpl.java:94)
Information:java: at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:168)
Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:388)
Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:289)
Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:197)
Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:168)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1238)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:912)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:984)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:871)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:696)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:387)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:194)
Information:java: at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:137)
Information:java: at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:294)
Information:java: at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
Information:java: at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:232)
Information:java: at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:44)
Information:java: at java.util.concurrent.Executors$RunnableAdapter.call([email protected]/Executors.java:514)
Information:java: at java.util.concurrent.FutureTask.run([email protected]/FutureTask.java:266)
Information:java: at java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1158)
Information:java: at java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:632)
Information:java: at java.lang.Thread.run([email protected]/Thread.java:804)
Information:java: Caused by: java.io.FileNotFoundException: Java resource does not exist : SOURCE_PATH/SOURCE/module-info
Information:java: at org.jetbrains.jps.javac.JavacFileManager.getJavaFileForInput(JavacFileManager.java:180)
Information:java: at com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager.getJavaFileForInput([email protected]/ClientCodeWrapper.java:287)
Information:java: at com.sun.tools.javac.code.ModuleFinder.getModuleInfoFromLocation([email protected]/ModuleFinder.java:231)
Information:java: at com.sun.tools.javac.code.ModuleFinder.findSingleModule([email protected]/ModuleFinder.java:187)
Information:java: ... 32 more
Information:java: Errors occurred while compiling module 'untitled'
Information:10/4/16 10:45 PM - Compilation completed with 1 error and 0 warnings in 5s 756ms
Error:java: java.lang.Error: java.io.FileNotFoundException: Java resource does not exist : SOURCE_PATH/SOURCE/module-info
コンパイルにJDK-9を使用していますか? –
update-alternativesの選択0 --config javac: /usr/lib/jvm/java-9-oracle/bin/javac – conquester
Java 9はまだリリースされていません。 Java 9のアーリーアクセス版を使用しています。安定した実稼働環境のJava版が必要な場合は、Java 9のアーリーアクセス版ではなく、Java 8を使用してください。Java 9コンパイラーにはまだバグが多い可能性があります。 IntelliJはまだそれを完全にサポートしていないかもしれません。 – Jesper