Re: Netbeans with Snap packaged OpenJDK

2022-05-26 Thread Laszlo Kishalmi
I'm updating the answer. On 5/26/22 09:52, Juan Algaba wrote: The SO question is indeed outdated, it´d be great if someone with enough reputation could leave a comment. On NB 12.4 copying it to this location worked: ~/snap/netbeans/common/data/12.4/etc/netbeans.conf But since NB 13 it seems t

Re: Netbeans with Snap packaged OpenJDK

2022-05-26 Thread Juan Algaba
The SO question is indeed outdated, it´d be great if someone with enough reputation could leave a comment. On NB 12.4 copying it to this location worked: ~/snap/netbeans/common/data/12.4/etc/netbeans.conf But since NB 13 it seems to not use the "common" folder, and use a non semVer versioning for

Re: Netbeans with Snap packaged OpenJDK

2022-05-25 Thread Laszlo Kishalmi
On 5/25/22 06:08, Stroud Custer wrote: I took the sage advice of several of the responders to this question and installed the Oracle version of Java 18.0.1.1 into my home directory.  I did not have success with placing a modified netbeans.conf in the netbeans/etc file located in the snap dir

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Laszlo Kishalmi
The following one works though: netbeans --jdkhome /snap/openjdk/current/jdk Making that default the following would do: cp -r /snap/netbeans/current/netbeans/etc $HOME/snap/netbeans/current/ echo 'netbeans_jdkhome="/snap/openjdk/current/jdk"' >> $HOME/snap/netbeans/current/netbeans.conf Ho

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Laszlo Kishalmi
On 5/24/22 01:38, Michael Bien wrote: the snap packages are no official packages they are provided by the community. That's kind of official, but in the terms of being convenience binary. Built from Apache repositories on ASF's own build grid. but in general: netbeans/etc/netbeans.conf has th

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Laszlo Kishalmi
Well, However I like the idea of Snap packages (being the main maintainer of the NetBeans one), I'd just install java from the standard Ubuntu debian packages or if you need something exotic, using SDKMAN (search on that if you are thinking about it). This could be as simple as: sudo apt ins

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Juan Algaba
ster ; Netbeans User Mailing List > > Subject: Re: Netbeans with Snap packaged OpenJDK > > Do note, that in order to edit netbeans.conf you won't be able to edit > the one inside the snap, you need to make a local copy in your user > folder using a specific folder struct

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Eric Bresie
AM To: Michael Bien Cc: Stroud Custer ; Netbeans User Mailing List Subject: Re: Netbeans with Snap packaged OpenJDK Do note, that in order to edit netbeans.conf you won't be able to edit the one inside the snap, you need to make a local copy in your user folder using a specific folder str

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Juan Algaba
Do note, that in order to edit netbeans.conf you won't be able to edit the one inside the snap, you need to make a local copy in your user folder using a specific folder structure that mirrors the snap, and then edit that: https://stackoverflow.com/questions/58825429/how-to-configure-netbeans-when-

Re: Netbeans with Snap packaged OpenJDK

2022-05-24 Thread Michael Bien
the snap packages are no official packages they are provided by the community. but in general: netbeans/etc/netbeans.conf has the property "netbeans_jdkhome" which you can use to tell NetBeans which JDK it should run on. I don't know much about snap so this might work differently there since t

Netbeans with Snap packaged OpenJDK

2022-05-23 Thread Stroud Custer
I just installed Netbeans and OpenJDK onto by Kubuntu 22.04 LTS. For some reason the required aliases to map openjdk.java to java, etc.  were not created when OpenJDK was installed.  I created the aliases found in the file /var/snap/openjdk/common/openjdk.env. Typing "java", "javac", "jar" into