I trying to figur out how to change from /usr/lib/jvm/java-11-openjdk/bin/java to java-20-openjdk.
In vscode. java-20-openjdk is set as (default) on my system and in settings.json I try this without success:
Available Java environments:
java-11-openjdk
java-17-openjdk
java-20-openjdk (default)
java-8-adoptopenjdk/jre
java-8-openjdk
running java in the terminal gives me this:
java /home/$USER/ownCloud/java/aaTest/Age2.java
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
You are a Adult!
You are a Kid!
but on vscode I get the following:
cd /home/$USER/ownCloud ; /usr/bin/env /usr/lib/jvm/java-11-openjdk/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:34229 -cp /home/$USER/.config/VSCodium/User/workspaceStorage/6bdbdf27bb4a57a3fcb6dbee2a0cf56d/redhat.java/jdt_ws/ownCloud_7802a30f/bin java.aaTest.Age2
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Thank you so far,
I did reset the .JSON at Java › Configuration: Runtimes
also clear does:
export _JAVA_OPTIONS=""
export JAVA_HOME=""
then try once with export JAVA_HOME=/usr/lib/jvm/default export JAVA_HOME=/usr/lib/jvm/java-20-openjdk and export JAVA_HOME=/usr/lib/jvm/default-runtime
running the “code runner” giving me this:
cd "/home/$USER/ownCloud/java/" && javac Age2.java && java Age2
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
I don’t really know where _JAVA_OPTIONS is getting Picked up, but I’m now thinking the problem is somewhere in the setting of “Debugger for Java”