• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

could not create the java virtual machine

 
Greenhorn
Posts: 10
MyEclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I hava installed sdk 1.4 on my machine , but when i check on cmd using "java -version" it responds " could not create java virtual machine " . can anyone tell me why this problem arises and how can i resolve it ?


Thanks in advance.
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sometimes, javac and java may not be in the PATH.

Set up your PATH to allow the OS to find javac and java, this should resolve your problem.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

purushottam singh wrote:I hava installed sdk 1.4 on my machine



Why are you installing a product that's been EOL since October 2008? If you must for some obscure reason do this, searching on "could not create java virtual machine" yields nearly 2 million results. At least some of them must be useful.

@Madhan: That error is totally unrelated to the PATH.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic