Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can not create java virtual machine

 
Anuj Abhishek
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to both Java and MacBook... When I try to run a java program from my command prompt I get this error message:
Could not create the Java virtual machine.
Can anyone please tell me how to trouble shoot it?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch

It seems java installation is corrupted. do you have *rt.jar*(bootstrap) in your classpath?

<edit>post the entire stacktrace/error message</edit>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic