I have Windows 7 32-bit computer with Java 1.8.0_161 and I have a problem with running jar file by double-click.
If I run jar by java -jar filename or javaw -jar filename command, everything is perfect. But if I run file by double-click I have error:
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object
So I checked regedit and figured out that java.exe from JDK is running file well, but JRE is running JAR with error above.
And it started doing it suddenly on one-year-old installation.