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.

Bug 243569 - JDK9 does not accept/ignore Perm Gen options, NetBeans fails to start
Summary: JDK9 does not accept/ignore Perm Gen options, NetBeans fails to start
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.0.1
Hardware: All All
: P1 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: JDK_SPECIFIC
: 245416 250540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-04 14:12 UTC by Antonin Nebuzelsky
Modified: 2015-03-10 07:40 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
output when running netbeans.exe with 32b JDK9 (21.42 KB, text/plain)
2014-05-09 07:57 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2014-04-04 14:12:53 UTC
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
Comment 1 Libor Fischmeistr 2014-04-07 08:32:22 UTC
These parameters should be removed for 1.8.0+. On all platforms.
Comment 2 Libor Fischmeistr 2014-04-08 12:21:20 UTC
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.
Comment 3 Libor Fischmeistr 2014-05-02 08:22:00 UTC
Fixed in changeset http://hg.netbeans.org/core-main/rev/0c3481756a90
Comment 4 Quality Engineering 2014-05-03 05:02:06 UTC
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
Comment 5 Libor Fischmeistr 2014-05-05 07:12:01 UTC
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
Comment 6 Vladimir Riha 2014-05-09 07:57:24 UTC
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)
Comment 7 Vladimir Riha 2014-05-09 07:57:52 UTC
Created attachment 147199 [details]
output when running netbeans.exe with 32b JDK9
Comment 8 Libor Fischmeistr 2014-05-09 08:06:18 UTC
Fixed - http://hg.netbeans.org/core-main/rev/8c5752cd2991

The nbexec.dll was missing.
Comment 9 Quality Engineering 2014-05-10 05:32:28 UTC
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)
Comment 10 Vladimir Riha 2014-05-12 08:56:53 UTC
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
Comment 11 Libor Fischmeistr 2014-05-12 08:59:54 UTC
(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.
Comment 12 Alexander Simon 2014-05-13 14:23:05 UTC
The fix introduced bug #244467 on Solaris
Comment 13 Libor Fischmeistr 2014-07-22 08:48:38 UTC
*** Bug 245416 has been marked as a duplicate of this bug. ***
Comment 14 Libor Fischmeistr 2015-03-10 07:38:45 UTC
*** Bug 250540 has been marked as a duplicate of this bug. ***