[ 
https://issues.apache.org/jira/browse/NETBEANS-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric VILLARD reopened NETBEANS-2385:
------------------------------------

Hi,

the new snap package for NetBeans version 12.5 has a similar issue, but the 
workaround to create a file ~/snap/netbeans/common/data/12.5/etc/netbeans.conf 
with the netbeans_jdkhome defined, does not work anymore.

NetBeans cannot be launched using the default launcher.

My configuration:
Ubuntu 20.04.3 LTS
NetBeans snap package version 50
Oracle JDK 15 installed using jenv [https://www.jenv.be/] under ~/.jenv

It worked fine with NetBeans 12.4 (snap package version 48) and older versions.

Should it be possible to solve this regression and possibly also rely on 
environment variables as JAVA_HOME or JDK_HOME?

Thanks

> 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
(v8.3.4#803005)

---------------------------------------------------------------------
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