Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java runtime error cannot find java.dll

 
Nirmal JeyaChandra
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I compile any java file it is getting compiled properly, but while executing it shows the following error in the command prompt.

Failed reading value of registry key:
Sofware\JavaSoft\Java Runtime Environment\CurrentVersion

Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
 
jiju ka
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't got this error.
A few more information may be needed.
How are you running the java programs? Are you using an ide like eclipse or are you running it at commandline?

Is the java compiler and jre same version?

could not find Java 2 Runtime Environment

How did you install the java? The installation could be wrong or not matching for the compiled code.

If you are not sure try reinstalling jre. There should not be more than 1 jre installed.
[ October 31, 2005: Message edited by: jiju ka ]
 
R Joshi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to have a look at this
http://www.newatlanta.com/c/products/bluedragon/self_help/faq/detail?faqId=6
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic