Curious, when running Netbeans when selecting Tools…Java Platforms and setting a default should that set the JDK home in the config file at the same time?
Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: Juan Algaba <jalg...@colef.mx> Sent: Tuesday, May 24, 2022 11:37:27 AM To: Michael Bien <mbie...@gmail.com> Cc: Stroud Custer <custerstr...@gmail.com>; Netbeans User Mailing List <users@netbeans.apache.org> 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 structure that mirrors the snap, and then edit that: https://stackoverflow.com/questions/58825429/how-to-configure-netbeans-when-installed-as-snap-package#answer-61498091 (not sure if the SO answer is up to date with the current netbeans snap folder structure, I´ll check when I get home) On Tue, May 24, 2022 at 1:40 AM Michael Bien <mbie...@gmail.com> wrote: > > 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 the point is to keep software > somewhat encapsulated. > > another thing which can go wrong: > some distributions use different layouts for JDKs and might not have > everything included. The safest way to run NetBeans is to use a JDK > downloaded from your favorite java dealer (oracle, temurin, zulu... etc). > Thats how NetBeans is tested before release. > > having the "java" command working is not sufficient to run NetBeans, the IDE > has to know where the full JDK is. > > regards, > michael > > On 24.05.22 03:13, Stroud Custer wrote: > > 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 a > command line now produces the expected results. However when in attempt to > invoke Netbeans, it complains that it can't find java and that the > --jdk-home option should be used. I've tried several variations of this > /snap/bin, etc. but I still get the "can't find java" message. > > Has anybody else encountered this problem, or know of any easy installation > that will get me jdk that netbeans recognizes? > > > > -- - Juan Algaba --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists