Intellij 2016.3 JDK 9 compile issue

Answered

as you see below, my jdk-ea148 build doesn't even resolve java.util.String. (Its not Jigsow build) How should I configure the Intellij ? I cannot find any docs or blogs and I assumed I'll just need to install & use it :)

0
5 comments
Official comment

IDEA 2016.3 does not support JDK9 builds 148 and newer; the support will appear in 2017.1 EAP.

Please try build 146 which is confirmed to work.

A lot of dependencies are missing from your JDK classpath. Try removing the JDK configuration and then add it again.

It should look like this (for jdk-9-ea+146_windows-x64_bin.exe):

0
Avatar
Permanently deleted user

Tried many times but still same: (jdk-9-ea+148_windows-x86_bin.exe)

 

0
Avatar
Permanently deleted user

Thanks for the info..

0
Avatar
Permanently deleted user

Thanks Serge Baranov. I was facing a different issue with the JDK9-EA+149 build. Upgrading to IJ 2017.1 EAP fixed it.

The error I got is below.

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:538)
at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:59)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.netty.util.internal.PlatformDependent0
at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:101)

 
0

Please sign in to leave a comment.