Skip to main content


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] Thu, 22 August 2002 03:54 Go to next message
Eclipse UserFriend
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 16:56 Go to previous messageGo to next message
Eclipse UserFriend
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 22:40 Go to previous messageGo to next message
Eclipse UserFriend
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 16:56 Go to previous messageGo to next message
Ren is currently offline RenFriend
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 22:40 Go to previous messageGo to next message
Chang is currently offline ChangFriend
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 06:05 Go to previous message
Le Sabbaghov Vert is currently offline Le Sabbaghov VertFriend
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
Next Topic:news.eclipse.org is shutting down.
Goto Forum:
  


Current Time: Thu Apr 18 23:23:49 GMT 2024

Powered by FUDForum. Page generated in 0.03712 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top