我正在尝试在最新的intellij(community edition)中使用Java9:
IntelliJ IDEA 2016.3 Build#IC-163.7743.44,2016年11月17日构建jre:1.8.0_112-release-408-b2 x86 jvm:OpenJDK服务器VM由JetBrains S.r.o.
Error:Abnormal build process termination:
C:\Users\pisarevv\Desktop\jdk-9\bin\java -Xmx700m -Djava.awt.headless=true -Djdt.compiler.useSingleThread=true -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=1630946162877517857 -Dfile.encoding=windows-1252 -Djps.file.types.component.name=CommunityFileTypes -Duser.language=en -Duser.country=US -Didea.paths.selector=IdeaIC2016.3 "-Didea.home.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3" -Didea.config.path=C:\Users\pisarevv\.IdeaIC2016.3\config -Didea.plugins.path=C:\Users\pisarevv\.IdeaIC2016.3\config\plugins -Djps.log.dir=C:/Users/pisarevv/.IdeaIC2016.3/system/log/build-log "-Djps.fallback.jdk.home=C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/jre/jre" -Djps.fallback.jdk.version=1.8.0_112-release -Djava.io.tmpdir=C:/Users/pisarevv/.IdeaIC2016.3/system/compile-server/_temp_ -Dkotlin.incremental.compilation.experimental=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\pisarevv\AppData\Local\Temp\kotlin-idea-451096579120734544-is-running\" -classpath "C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-launcher.jar;C:/Users/pisarevv/Desktop/jdk-9/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/ecj-4.6.1.jar" org.jetbrains.jps.cmdline.Launcher "C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-builders.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jna.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/asm-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/forms_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/annotations.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/util.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/netty-all-4.1.5.Final.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/snappy-in-java-0.5.1.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/trove4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/openapi.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-model.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/nanoxml-2.2.3.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/javac2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jna-platform.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/rt/jps-plugin-system.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/protobuf-2.5.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jdom.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/oromatcher.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/idea_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/log4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/resources_en.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jgoodies-forms.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Groovy/lib/groovy-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Groovy/lib/groovy-rt-constants.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/maven-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/aether-dependency-resolver.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/aether-1.1.0-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/maven-aether-provider-3.3.9-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/plexus-utils-2.0.6.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-runtime.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-android-extensions-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-android-extensions-compiler-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/javaFX/lib/common-javaFX-plugin.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 62860 aa8c9c68-3477-48ea-9f1c-5086eaa5935d C:/Users/pisarevv/.IdeaIC2016.3/system/compile-server
Build process started. Classpath: C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-launcher.jar;C:/Users/pisarevv/Desktop/jdk-9/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/ecj-4.6.1.jar
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:537)
at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:59)
Caused by: java.lang.ExceptionInInitializerError
at com.intellij.util.concurrency.AtomicFieldUpdater.<clinit>(AtomicFieldUpdater.java:41)
at com.intellij.util.containers.ConcurrentIntObjectHashMap.getUnsafe(ConcurrentIntObjectHashMap.java:2787)
at com.intellij.util.containers.ConcurrentIntObjectHashMap.<clinit>(ConcurrentIntObjectHashMap.java:2752)
at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectMap(ContainerUtil.java:2489)
at com.intellij.util.containers.ConcurrentRefValueIntObjectHashMap.<init>(ConcurrentRefValueIntObjectHashMap.java:31)
at com.intellij.util.containers.ConcurrentWeakValueIntObjectHashMap.<init>(ConcurrentWeakValueIntObjectHashMap.java:31)
at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectWeakValueMap(ContainerUtil.java:2530)
at com.intellij.openapi.util.Key.<clinit>(Key.java:38)
at org.jetbrains.jps.incremental.Utils.<clinit>(Utils.java:40)
at org.jetbrains.jps.cmdline.BuildMain.main(BuildMain.java:82)
... 5 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private jdk.internal.reflect.ConstructorAccessor java.lang.reflect.Constructor.acquireConstructorAccessor() accessible: module java.base does not "opens java.lang.reflect" to unnamed module @4f9a3314
at java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:424)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:199)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:192)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:186)
at com.intellij.util.ReflectionUtil.findMethod(ReflectionUtil.java:265)
at com.intellij.util.ReflectionUtil.getDeclaredMethod(ReflectionUtil.java:279)
at com.intellij.util.ReflectionUtil.<clinit>(ReflectionUtil.java:422)
... 15 more
有人知道如何解决这个问题吗?还是我应该等到他们发布另一个版本?
您一直在使用Java9Jigsaw构建(从http://jdk9.Java.net/Jigsaw/获得)-IntelliJ还不能在其中工作。这是一个已知的问题。您必须坚持常规的EA构建(从https://jdk9.java.net/download/)。
在试图使用JDK9.0.1编译Maven项目时,我遇到了这个stacktrace,但没有给出太多解释: 带有maven-compiler-plugin 3.7.0的Maven 3.5.0 我正在执行mvn clean Install 不幸的是,源代码不是开源的,所以我不能随意分享 还没有module-info.Java文件,我只是尝试使用Java9编译一个项目 奇怪的是,如果我将源级别保留在1.8
我最近从Community Edition第12版切换到了第13版(更新到13.0.1),显然,代码的实时(“即时”)编译不起作用,至少不像其他主要IDE(例如)那样。 在前面的StackOverflow问题中也提出了类似的问题,答案是检查中的相应选项,当然我已经做了,但没有任何改变。 按照目前的方式,我可以在代码中键入任何文本,并且没有错误高亮显示,即使在保存文件时也没有,更不用说实时了。 是否
我今天已经更新到Intellij14.0.1。我导入了我在IntelliJ13.1上工作的Maven项目,虽然成功导入了该项目,但当我尝试从IntelliJ中或项目时,找不到依赖项。 我需要说的是,当我安装Maven时,即使是从IntelliJ内部安装,也是成功的。但当I时,会出现项目错误,指示缺少库(依赖项)。 有人面临过类似的事情吗?有什么办法解决吗?我已经尝试重新导入项目,但没有帮助。此外,
编译过程中的错误有: 说明资源路径位置类型new AsyncHttpResponseHandler(){}类型的onSuccess(String)方法必须重写或实现超类型方法
我正在尝试使用android Studio从tess-two项目中构建两只眼睛。我为tess-two和eyes-two做了ndk-build android...ant发布的东西,导入了eyes-two,配置了NDK.dir路径等等,但是,在构建时,我得到了以下错误消息:
我无法完成代码。它在Flash Builder中运行良好。但我以前在Idea中使用过它,速度要快得多。所以我把我的FB文件导入了新创意项目。但当我尝试调试时,会收到错误消息: 使用内置编译器外壳,最多4个并行线程请参阅文件|设置|编译器| Flex编译器页面上的编译器设置 启动Flex编译器:/System/Library/Java/JavaVirtualMachines/1.6.0。jdk/Co