You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Glenn Holmer <ce...@protonmail.com.INVALID> on 2022/06/03 14:06:02 UTC

setting default Java platform

Why can't I remove the default Java platform? How do I set 17.0.2 as the
default? See attached screenshot.

--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."

Re: setting default Java platform

Posted by Michael Bien <mb...@gmail.com>.
Hi Glen,

the default platform is the JDK NB is running on. If you don't define 
any platform that is what NB is going to use.

I suppose NB could allow setting a different platform as default, but it 
can't do that atm, since default means "runtime".

changing it right now would require to set it in netbeans.conf and restart
https://github.com/apache/netbeans#log-config-and-cache-locations

NB 13 supports running on JDK 17 (NB 14 supports 18 etc), so it should 
be no problem

regards,
michael


On 03.06.22 16:06, Glenn Holmer wrote:
> Why can't I remove the default Java platform? How do I set 17.0.2 as the
> default? See attached screenshot.
>
> --
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: setting default Java platform

Posted by Andreas Reichel <an...@manticore-projects.com>.
Greetings Glen.

Looks correct to me (from the Netbeans point of view), but your need to
check the directories.
Mine looks like:

are@archlinux ~> ls /usr/lib/jvm/
…/lib/jvm/default/          …/lib/jvm/java-17-jetbrains/   
…/lib/jvm/default-runtime/  …/lib/jvm/java-17-openjdk/     
…/lib/jvm/java-8-openjdk/   …/lib/jvm/jdk-jetbrains/       
…/lib/jvm/java-11-graalvm/  …/lib/jvm/liberica-jdk-11-full/
…/lib/jvm/java-11-openjdk/  …/lib/jvm/liberica-jdk-full/

And each JVM will have the java executable in ./bin/java:

are@archlinux ~> ls -lh /usr/lib/jvm/*/bin/java
-rwxr-xr-x 1 root root 14K May 24 14:41 /usr/lib/jvm/default/bin/java*
-rwxr-xr-x 1 root root 14K May 24 14:41 /usr/lib/jvm/default-runtime/bin/java*
-rwxr-xr-x 1 root root 11K Apr 28 16:43 /usr/lib/jvm/java-11-graalvm/bin/java*
-rwxr-xr-x 1 root root 15K Apr 20 06:21 /usr/lib/jvm/java-11-openjdk/bin/java*
-rwxr-xr-x 1 root root 14K May 24 14:41 /usr/lib/jvm/java-17-jetbrains/bin/java*
-rwxr-xr-x 1 root root 14K Apr 20 06:35 /usr/lib/jvm/java-17-openjdk/bin/java*
lrwxrwxrwx 1 root root  15 Apr 23 05:57 /usr/lib/jvm/java-8-openjdk/bin/java -> ../jre/bin/java*
-rwxr-xr-x 1 root root 11K Jun  3 00:50 /usr/lib/jvm/jdk-jetbrains/bin/java*
-rwxr-xr-x 1 root root 11K Apr 28 16:43 /usr/lib/jvm/liberica-jdk-11-full/bin/java*
-rwxr-xr-x 1 root root 11K Apr 28 16:44 /usr/lib/jvm/liberica-jdk-full/bin/java*

Best of luck
Andreas