You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (Jira)" <ji...@apache.org> on 2021/09/25 07:12:00 UTC

[jira] [Resolved] (NETBEANS-2385) Snap package unable to run

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

Laszlo Kishalmi resolved NETBEANS-2385.
---------------------------------------
    Resolution: Information Provided

You are right the userdir has been moved to the $HOME/snap/netbeans/current directory in order to provide better upgrade experience in the future.

> 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&amp;CLI
>    Affects Versions: 10.0, 11.0, 12.5
>         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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists