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?


Reply via email to