![]() Java/lang/NoClassDefFoundError: java/lang/Object I'm really suprised that a question from 2012 doesn't have an approved answer yet and I've actually encountered the same issue in 2015 on my Win 7 32-Bit OS!īasically, everything was working fine, I downloaded H2 database and when I tried to start H2 Console (Command Line) I got: Error occurred during initialization of VM If there is, it's a leftover from something. #Freemind download windows 8 64 bit windowsSince at least 1.6, there should not be a java.exe in the Windows directory. Go to C:\Windows\System32 directory and delete java.exe (or rename it to something like ). ![]() ![]() Quick Solution for impatient people ) On Windows machines, try this: Or, if you don't want to use the installer, use the. Try again with the installer and/or more privileges. Perhaps you installed without admin rights, or tried to simply extract files out of the installer. pack files, from the JRE root run: find -iname "*.pack" -exec sh -c "/usr/bin/unpack200 -r -q | sed 's/\(.*\.\)pack/\1jar/')" \ pack file (for example rt.pack), run: /usr/bin/unpack200 -r -v rt.pack rt.jar pack files, from the JRE root run: for /r %f in (*.pack) do "%JAVA_HOME%\bin\unpack200.exe" -r -q "%f" "%~pf%~nf.jar" pack file (for example rt.pack), run: "%JAVA_HOME%\bin\unpack200" -r -v rt.pack rt.jar pack files in the JRE's lib/ and lib/ext/ folders. You need to manually run unpack200 on all. If you are experiencing this error, apparently that didn't happen. The Java installer is supposed to uncompress them. ![]() When the JRE is packaged, these critical JAR files are compressed with Pack200 and stored as rt.pack, deploy.pack, jsse.pack, etc. The Java standard library is contained in various JARs, such as rt.jar, deploy.jar, jsse.jar, etc. rt.jar and friends no longer exist, and Pack200 is no longer used. Beginning with Java 9, the JRE is structured differently. NOTE: This scenario only applies to Java 8 and prior. This problem stems from an improper Java installation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |