Bartosz Tomasik created NETBEANS-2385:
-----------------------------------------

             Summary: 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: 11.0, 10.0
         Environment: Ubuntu 14.04
            Reporter: Bartosz Tomasik


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

Reply via email to