Hi, today I installed Garuda Sway and when I try to execute java I got that error:
[] × java --version
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 {-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel {}}
Unrecognized option: {-Dawt.useSystemAAFontSettings=on
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
NOTE: Picked up JDK_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 {}}
Error: Cannot specify main class in environment variable JDK_JAVA_OPTIONS
Thank you very much for your help sir, the problem is fixed, to remove the errors I deleted all the arguments of "export _JAVA_OPTIONS" from the .profile into the user directory, I reboot and java executed successfully with no errors. (i tested some java programs and runs very well).
One question, how can I put the post as resolved or closed?.