idea编译改成eclipse后报错

idea编译改成eclipse后报错如下:

Error:java: Internal error: 
java.lang.IllegalArgumentException
    at org.eclipse.jdt.internal.compiler.tool.EclipseFileManager.handleOption(EclipseFileManager.java:758)
    at [email protected]/javax.tools.ForwardingJavaFileManager.handleOption(ForwardingJavaFileManager.java:99)
    at org.jetbrains.jps.javac.JpsJavacFileManager.handleOption(JpsJavacFileManager.java:318)
    at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:72)
    at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:460)
    at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:330)
    at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:255)
    at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:213)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1324)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:1004)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1071)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:965)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:794)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:376)
    at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:178)
    at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:139)
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:288)
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:121)
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:228)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

更改图中黄色框内的为合适版本的jar包就可以了

idea编译改成eclipse后报错_第1张图片

你可能感兴趣的:(解决问题)