I have tried to reinstall Java multiple times, I've tried installing it on a different drive, I've tried using Jarfix, I've tried manually fixing the path of Java, I've tried most recommended fixes including creating a batch file and running it through that, I've tried -nogui. No matter what I do, .jar files will not launch on their own (they used to work fine but tbh I haven't tried in years, I think I know the root of the issue but it would involve a fresh install of Windows to fix so I'm hoping there is another way)
Log.
JVM info: Oracle Corporation - 19.0.1 - 19.0.1+10-21
java.net.preferIPv4Stack=true
Found java version 19.0.1
Exception in thread "main"
java.lang.ExceptionInInitializerError
at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:166)
at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147)
Caused by: java.lang.IllegalArgumentException: 40 incompatible with Text-specific LCD contrast key
at java.desktop/java.awt.RenderingHints.put(RenderingHints.java:1133)
at java.desktop/sun.awt.windows.WDesktopProperties.getDesktopAAHints(WDesktopProperties.java:307)
at java.desktop/sun.awt.windows.WToolkit.getDesktopAAHints(WToolkit.java:1087)
at java.desktop/sun.awt.SunToolkit.getDesktopFontHints(SunToolkit.java:1805)
at java.desktop/sun.awt.windows.WDesktopProperties.getProperties(WDesktopProperties.java:244)
at java.desktop/sun.awt.windows.WToolkit.lazilyInitWProps(WToolkit.java:963)
at java.desktop/sun.awt.windows.WToolkit.lazilyLoadDesktopProperty(WToolkit.java:952)
at java.desktop/java.awt.Toolkit.getDesktopProperty(Toolkit.java:1554)
at java.desktop/javax.swing.UIManager.<clinit>(UIManager.java:388)
... 2 more
This shows instantly when trying to run any .jar file with a batch file. Clearly something is causing it not to work, I've googled most of these exceptions and such without any luck, maybe someone here can see why .jar files just won't work no matter what.
I have Java SE 8 and JDK 19.