Error During Initialization Of Vm Noclassdeffounderror Java.lang.object
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up JRE 1.7 returns: java/lang/NoClassDefFoundError: java/lang/Object up vote 77 down vote favorite 25 When running any java application, or just 'java', the jvm fails: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Here is a list of wrong answers: The correct Java home directory, including the /bin directory, is on the global PATH JAVA_HOME is set correctly Executing the command java -fullversion works $ java -fullversion ./java full version "1.7.0_05-b05" The symbolic links in /usr/java all point to the correct java installation I did not install any 'default' java when I created the system java -version fails...same error as above Issuing the commands from under the directory structure of the java installation does not work either This is 64-bit java for a 64-bit Any ideas? java share|improve this question edited Mar 6 '14 at 18:46 vaxquis 5,79652541 asked Aug 4 '12 at 12:52 Tux Skywalker 386144 2 It seems there is problem in loading the rt.jar file, which is required by JVM at the time of loading JRE –Bhavik Ambani Aug 4 '12 at 13:07 maybe some permission-related issues? –Mark Bramnik Aug 4 '12 at 13:08 run truss/strace to see any missing files/file permissions –Jayan Aug 4 '12 at 14:00 inbytebg.com/techblog/?p=189, on the first comment there is a hex trick to patch the installer –Sebastian Godelet Jun 25 '14 at 7:33 add a comment| 22 Answers 22 active oldest votes up vote 122 down vote The problem comes from an improper java installation (e.g. an installation done without admin rights or by simply unzipping tools.zip). You can either uninstall, then reinstall Java with an installer and/or more privileges or try the following: Check in your JDK folder for *.pack files in jre/lib and jre/lib/ext such as rt.pack (the default location is c:\nameof_jdk_folder\jre\lib for Microsoft Windows a
This Site Careers Other all forums Forum: Java in General Error occurred during initialization of VM ganapathi sundaram Greenhorn Posts: 14 posted 3 years ago Hi All, I am getting below error when execute java class file thru "java.exe" "Error occurred during initialization of VM" I have done the environmental setup for windows xp. I am able to execute java.exe successfully if am overwriting path environment variable to the jdk\bin folder.. But. if am setting along with existing path variable, i am getting above error. http://stackoverflow.com/questions/11808829/jre-1-7-returns-java-lang-noclassdeffounderror-java-lang-object Please help me out. This is an urgent for me. Thanks in advance. Rob Spoor Sheriff Posts: 20678 65 I like... posted 3 years ago ganapathi sundaram wrote:This is an urgent for me. But it isn't for us, so please EaseUp next time. That said, have you tried reinstalling the JRE? SCJP 1.4 - SCJP 6 - SCWCD https://coderanch.com/t/603352/java/java/Error-occurred-initialization-VM 5 - OCEEJBD 6 - OCEJPAD 6 How To Ask Questions How To Answer Questions ganapathi sundaram Greenhorn Posts: 14 posted 3 years ago Hi RobSpoor, Yes, I did reinstall JRE.. But no use of that new installation. Still the same issue persist. Please advise. Thanks in advance.. Tony Docherty Bartender Posts: 3006 59 posted 3 years ago It sounds like you have/had different versions of Java installed and the Path variable has references to more than one installation. Can you show us what the Path environment variable is set to and also give the installation directory of your latest Java install. ganapathi sundaram Greenhorn Posts: 14 posted 3 years ago Hi Tony, Thanks for the reply. As you said, I have installed both jdk1.6.0_25 and jdk1.7.0 in my system. But I have set path for 1.6 only along with existing path. Below is my path environment variable, C:\Documents and Settings\TestUser>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\In tel\DMIX;C:\Program Files\Microsoft Application Virtualization Client;C:\Program Files\RSA Security\RSA SecurID Software Token\;C:\Program Files\Windows Imaging \;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel \DMIX;C:\Program Files\Microsoft Application Virtualization Client;C:\Progra
Things LocationTech Long-Term Support PolarSys Science OpenMDM More Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug Forums Mailing Lists Wiki IRC How to Contribute https://www.eclipse.org/forums/index.php/t/6077/ Working Groups Automotive Internet of Things LocationTech Long-Term Support PolarSys Science OpenMDM Toggle navigation Home Projects Forums Eclipse Community Forums Forum Search: Search Help Register Login Home Home» Eclipse Projects» Technology Project and PMC» Error occurred during initialization of VM Show: Today's Messages :: Show Polls :: Message Navigator Error occurred during initialization error during of VM [message #18225] Thu, 22 August 2002 03:54 Eclipse User Originally posted by: chinakapok.sina.com Hello, I'm a newer to use the Eclipse platform. After I create a new "Java" project and write a simple program. When I run it, error occur as below, _____________________________________________ "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object" _____________________________________________ Below is my program _______________________________________________ error during initialization public class SimpleProgram { public static void main(String[] args) { System.out.println("This is a simple program."); } } _______________________________________________ I don't known why? Thanks in advance. tiger Report message to a moderator Re: Error occurred during initialization of VM [message #18291 is a reply to message #18225] Fri, 23 August 2002 16:56 Eclipse User Originally posted by: ren.nospam.com Dude, I have got the same problem. Once you resolve it, could you let me too? This is annoying.. Ren tiger wrote: > Hello, I'm a newer to use the Eclipse platform. > After I create a new "Java" project and write a simple program. > When I run it, error occur as below, > _____________________________________________ > "Error occurred during initialization of VM > java/lang/NoClassDefFoundError: java/lang/Object" > _____________________________________________ > Below is my program > _______________________________________________ > public class SimpleProgram { > public static void main(String[] args) { > System.out.println("This is a simple program."); > } > } > _______________________________________________ > I don't known why? > Thanks in advance. > tiger Report message to a moderat