Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Error occurred during initialization of VM
Error occurred during initialization of VM [message #18225] Wed, 21 August 2002 23:54 Go to next message
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
_______________________________________________
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
Re: Error occurred during initialization of VM [message #18291 is a reply to message #18225] Fri, 23 August 2002 12:56 Go to previous messageGo to next message
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
Re: Error occurred during initialization of VM [message #19544 is a reply to message #18225] Tue, 27 August 2002 18:40 Go to previous messageGo to next message
Eclipse User
Originally posted by: Chang.Zu.com

Go to launch configuration, check ur bootstrap classes tab under Classpath.

Add rt.jar (The JRE) by clicking on Add external jars.

See if this works coz it worked for me.


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
Re: Error occurred during initialization of VM [message #573553 is a reply to message #18225] Fri, 23 August 2002 12:56 Go to previous messageGo to next message
Ren is currently offline Ren
Messages: 1
Registered: July 2009
Junior Member
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
Re: Error occurred during initialization of VM [message #574076 is a reply to message #18225] Tue, 27 August 2002 18:40 Go to previous messageGo to next message
Chang is currently offline Chang
Messages: 4
Registered: July 2009
Junior Member
Go to launch configuration, check ur bootstrap classes tab under Classpath.

Add rt.jar (The JRE) by clicking on Add external jars.

See if this works coz it worked for me.


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
icon3.gif  Re: Error occurred during initialization of VM [message #820444 is a reply to message #18225] Wed, 14 March 2012 02:05 Go to previous message
Le Sabbaghov Vert is currently offline Le Sabbaghov Vert
Messages: 1
Registered: February 2011
Junior Member
Hello guys,

The trick is that certain mischievous programs copy java files into Windows directory!! Hence, the error occurring in your case is because Java executable files in Windows directory are simply overshadowing the one in Java'SDK or JDK.

Simply navigate to system32 directory and remove the following java executable files: java.exe, javaw.exe, and javaws.exe. [Renaming the files to whatsoever will do the trick too Wink ].


It worked just fine with me and save me time uninstalling and installing java jdk over and over!!!


Hope it works with you and solves your VM problem.


wasalams
Previous Topic:plugin activator is invalid
Goto Forum:
  


Current Time: Thu Apr 17 08:31:22 EDT 2014

Powered by FUDForum. Page generated in 0.05951 seconds