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?