Error Occurred During Initialization Of Vm Java Lang
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 Error occured during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object) up vote 22 down vote favorite 6 I am a newbie to Eclipse and Java. I'm trying to install Java to use Eclipse (I followed all instructions to install Java and Eclipse) but my Eclipse is not starting due to some bad configuration I guess. I can't figure out why it's not working for me. Eclipse Installation: Extracted Eclipse at C:\eclipse Created a shortcut to my desktop having target C:\eclipse\eclipse.exe When I try to run Eclipse with this shortcut, I see following Eclipse splash screen for a second and it disappears. Eclipse does not start at all. JAVA Installation: Installed JDK at C:\Program Files\Java\jdk1.7.0_10 Installed JRE at C:\Program Files\Java\jre7 Environment Variables Configuration: JAVA_HOME = C:\Program Files\Java\jdk1.7.0_10 PATH = C:\Program Files\Java\jdk1.7.0_10\bin; I tested my Java installation using the console and figured out this issue but I don't know how to fix it, and I guess this is causing Eclipse not to start. Problem: Any help will be highly appreciated! windows eclipse java java-7 share|improve this question edited Jan 1 '13 at 9:01 rahulroc 7,78121737 asked Jan 1 '13 at 8:43 Tahir Yasin 6,07132247 Were you able to solve the problem? –Kevin Rave May 28 '13 at 16:42 yes! @KevinRave –Tahir Yasin May 29 '13 at 7:09 Thanks, I was able figure on my end. Thanks for the response! :-) –Kevin Rave May 29 '13 at 15:32 add a comment| 9 Answers 9 active oldest votes up vote 10 down vote accepted Go to Eclipse folder, locate eclipse.ini file, add following entry (before -vmargs if present): -vm C:\Program Files\Ja
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. Please help me out. This is an urgent for me. Thanks in advance. Rob Spoor Sheriff Posts: 20695 http://stackoverflow.com/questions/14109079/error-occured-during-initialization-of-vm-java-lang-noclassdeffounderror-java 68 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 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, https://coderanch.com/t/603352/java/java/Error-occurred-initialization-VM 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: 3012 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:\Program Fi les\RSA Security\RSA SecurID Software Token\;C:\Program Files\Windows Imaging\;C :\Program Files\Java\jdk1.6.0_25\bin; Though i have set the path for 1.6 alone. Still, i am facing the same one. Please suggest to move forward. Thanks in advance. Tony Docherty Bartender Posts: 3012 59 posted 3 years ago In your first post you said you got it working
Things LocationTech Long-Term Support PolarSys Science OpenMDM More Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug https://www.eclipse.org/forums/index.php/t/6077/ Forums Mailing Lists Wiki IRC How to Contribute Working Groups https://geekycoder.wordpress.com/2009/07/08/java-tips-adventure-in-resolving-the-java-error-error-occurred-during-initialization-of-vm/ 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 error occurred of VM Show: Today's Messages :: Show Polls :: Message Navigator Error occurred during initialization 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 error occurred during 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 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" > ______
ofPale Java Tips: Disabling the maximize button ofJFrame » Java Tips: “Adventure” in resolving the Java error “Error occurred during initialization ofVM” July 8, 2009 by geekycoder The objective of this post talk about my little “adventure” in resolving the fatal Java error that prohibits running Java application. Symptoms You use to have the Java applications and Java IDE on your Windows-based system working then one fine day, out of unknown reason, all the Java application and plug-in in the IDE cease to work. Worse, no error message and the application just silently fail to run. Oh, your first thought is that this shouldn’t happen because it is not even April’s fool day or Monday’s blue because today is Wednesday in July. So your first reaction is to re-install the Java SDK or runtime assuming that they might have been damaged. However just before re-installing you confirm that the SDK/runtime is indeed the main problem so you test-run some command in Window command console. jar.exe command run fine but running java.exe on directory other it’s bin directory produce the infamous Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object What so damaging about this problem is the some plugins like Android and Grails in Intellij become non-functional as well. You know why very soon. So here I go trying to resolve the issue. Running Java.exe produce error in other directories (since the SDK’s bin is added to path.) However running in it’s bin directory, it runs fine. Investigation So your immediate conclusion is that somehow the path is the main culprit. However looking at the path output, there is nothing very harmful on the path after all it is just windows path and the JavaFX path which should hardly cause any problem since it is the