Well,
<user-dir>/etc/netbeans.conf always work.
What happened is, the user directory has been changed in the recent Snap
releases. So you need to use: ~/snap/netbeans/current/etc/netbeans.conf
The reason for this change is to enable seamless upgrade experience with
Snap package. The change has happened between 12.4 to 12.5.
On 3/29/22 13:54, Mark Eggers wrote:
I have installed (actually auto-upgraded) NetBeans 13 on Ubuntu 20.04.
I would like to change some default configurations in netbeans.conf,
notably JDK. I know that I can change this on the command line.
However, I would like to do this via netbeans.conf.
In past versions of NetBeans, this meant creating a
~/snap/netbeans/common/data/[version]/etc directory, copying in
/snap/netbeans/current/netbeans/etc/netbeans.conf, and editing that file.
That no longer appears to work. I have added the following to
netbeans.conf:
netbeans_jdkhome="/opt/Java/jdk17"
This does not change the default JDK from 11 (current at the time of
install) to 17.
I've also tried the above without the quotes.
Running netbeans --jdkhome /opt/Java/jdk17 works as expected.
The only options seem to be:
1. Uninstall NetBeans, set the default JDK to /opt/Java/jdk17,
reinstall NetBeans
2. Launch NetBeans from the command line with --jdkhome /opt/Java/jdk17
Thoughts on where to look greatly appreciated.
. . . just my two cents
/mde/
---------------------------------------------------------------------
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