[
https://issues.apache.org/jira/browse/NETBEANS-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816664#comment-16816664
]
Laszlo Kishalmi commented on NETBEANS-2385:
-------------------------------------------
It seems you might have some IBM Java as default upon your error message:
[https://www-01.ibm.com/support/docview.wss?uid=swg21666832]
And it seems it does not support the: -XX:+IgnoreUnrecognizedVMOptions flag we
are providing for the java process.
One fairly good solution is to set the jdkhome in your netbeans.conf file as:
{{mkdir ~/snap/netbeans/common/data/11.0/etc/}}
{{echo 'netbeans_jdkhome="/usr/lib/jvm/java-1.11.0-openjdk-amd64"' >>
~/snap/netbeans/common/data/11.0/etc/netbeans.conf}}
> Snap package unable to run
> --------------------------
>
> Key: NETBEANS-2385
> URL: https://issues.apache.org/jira/browse/NETBEANS-2385
> Project: NetBeans
> Issue Type: Bug
> Components: platform - Launchers&CLI
> Affects Versions: 10.0, 11.0
> Environment: Ubuntu 14.04
> Reporter: Bartosz Tomasik
> Assignee: Laszlo Kishalmi
> Priority: Major
>
> I'm using Netbeans snap package. However it seems there's some clash on what
> netbeans detect as default java and what it tries to use, if I provide
> _jdkhome_ as an argument everything works. otherwise I get error:
> {quote}{{$ netbeans }}
> {{JVMJ9VM007E Command-line option unrecognised:
> --add-opens=java.base/java.net=ALL-UNNAMED}}
> {{Error: Could not create the Java Virtual Machine.}}
> {{Error: A fatal exception has occurred. Program will exit.}}
> {quote}
> in contradiction all of this works as expected:
> netbeans --jdkhome /usr/lib/jvm/java-1.11.0-openjdk-amd64
> netbeans --jdkhome /usr/lib/jvm/java-1.8.0-openjdk-amd64
> netbeans --jdkhome /usr/lib/jvm/ibm-java80-jdk-x86_64
> jdk11 is my default java
> {quote}$ update-java-alternatives -l
> ibm-java80-jdk-x86_64 80 /usr/lib/jvm/ibm-java80-jdk-x86_64
> ibm-java80-jre-x86_64 80 /usr/lib/jvm/ibm-java80-jre-x86_64
> java-1.11.0-openjdk-amd64 1111
> /usr/lib/jvm/java-1.11.0-openjdk-amd64
> java-1.8.0-openjdk-amd64 1081
> /usr/lib/jvm/java-1.8.0-openjdk-amd64
> java-1.9.0-openjdk-amd64 1091
> /usr/lib/jvm/java-1.9.0-openjdk-amd64
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists