I have an issue on hdpi with netbeans, the icon become too small when I open it. Then I found the issue below. And someone says that jdk9 fix the resolution problem.
https://netbeans.org/bugzilla/show_bug.cgi?id=252452
Here is my environment:
I downloaded jdk9 & netbeans8.2 on windows10, hoping that JDK9 might fix the annoying resoution issue. Unfortunately, I can't open the netbeans.
After I type this in cmd.
netbeans.exe --jdkhome "C:\Program Files\Java\jdk-9"
console show the error.
No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module @4973813a
at java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:427)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:201)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:171)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:165)
at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:82)
at org.netbeans.JarClassLoader.(JarClassLoader.java:141)
at org.netbeans.MainImpl.execute(MainImpl.java:178)
at org.netbeans.MainImpl.main(MainImpl.java:85)
at org.netbeans.Main.main(Main.java:83)
Does anyone know how to use jdk9 with Netbeans ?
The download documentation for NetBeans 8.2 explicitly states: JDK 8 is required for installing and running the Java SE, Java EE and All NetBeans Bundles.
NetBeans 8.2 requires JDK 8, and it will not work with any version of Java > 8. NetBeans does not yet support JDK 11, though the release of a new version which does (NetBeans 10) is imminent.
Bookmark this question. Show activity on this post. In Netbeans 8.2, it says to use Java JDK 8.1 or higher.
The Apache NetBeans 12.6 binary releases require JDK 11+, and officially support running on JDK 11 and JDK 17. Apache NetBeans 12.6 can be run on JDK 8, with some features disabled, if built from source using JDK 8.
As you noted yourself in a comment you need to use one of the nightly builds to get JDK 9 support. The full instructions are available here: http://wiki.netbeans.org/JDK9Support
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With