This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Based on the decision of Java in JDK9, the parameters "-XX:PermSize" and "-XX:MaxPermSize" are not anymore ignored (like in JDK8) and the JVM gives an error and fails to start. NetBeans launcher needs to start handling this JDK9 case and not pass these parameters to Java. A workaround: -XX:+IgnoreUnrecognizedVMOptions Related JDK issue: https://bugs.openjdk.java.net/browse/JDK-8038827
These parameters should be removed for 1.8.0+. On all platforms.
Works on Windows, because Java is not usually launched via java.exe but by loading jni.dll library. That's probably JDK issue. When starting NetBeans with --fork-java parameter. The issue reveals too.
Fixed in changeset http://hg.netbeans.org/core-main/rev/0c3481756a90
Integrated into 'main-silver', will be available in build *201405030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/0c3481756a90 User: Libor Fischmeistr <lfischmeistr@netbeans.org> Log: #243569: JDK9 does not accept/ignore Perm Gen options, NetBeans fails to start
Vlado, please test the functionality. Things to check -IDE can launch on JDK 1.7, 1.8 and 1.9 -Only on JDK 1.7 -XX:PermSize and -XX:MaxPermSize are set up in default -User defined -XX:PermSize and -XX:MaxPermSize are not ignored on all versions of JDK Thanks
So far I've tried netbeans64.exe with all 64bit JDKs and it works fine, but when I want to run netbeans.exe with 32bit JDK9, IDE does not start, I'm attaching console output (notice it complains about unknown option -L-XX:MaxPermSize=256m)
Created attachment 147199 [details] output when running netbeans.exe with 32b JDK9
Fixed - http://hg.netbeans.org/core-main/rev/8c5752cd2991 The nbexec.dll was missing.
Integrated into 'main-silver', will be available in build *201405100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8c5752cd2991 User: Libor Fischmeistr <lfischmeistr@netbeans.org> Log: #243569: JDK9 does not accept/ignore Perm Gen options, NetBeans fails to start (Missing Win 32bit nbexec added)
Thank you, verified on Windows7 64b (both netbeans.exe and netbeans64.exe), Ubuntu 12.04 32b and Mac OS X 10.9.2 x86_64 NetBeans IDE Dev 201405120001
(In reply to Vladimir Riha from comment #10) > Thank you, verified on Windows7 64b (both netbeans.exe and netbeans64.exe), > Ubuntu 12.04 32b and Mac OS X 10.9.2 x86_64 > > NetBeans IDE Dev 201405120001 Thank you very much for verification.
The fix introduced bug #244467 on Solaris
*** Bug 245416 has been marked as a duplicate of this bug. ***
*** Bug 250540 has been marked as a duplicate of this bug. ***