wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Java runtime error cannot find java.dll Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java runtime error cannot find java.dll" Watch "Java runtime error cannot find java.dll" New topic
Author

Java runtime error cannot find java.dll

Nirmal JeyaChandra
Greenhorn

Joined: Aug 31, 2005
Posts: 25
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

Joined: Oct 12, 2004
Posts: 306
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

Joined: Feb 21, 2006
Posts: 13
You may want to have a look at this
http://www.newatlanta.com/c/products/bluedragon/self_help/faq/detail?faqId=6


B&S(2.3.1)<br />There are no stupid questions. Answers maybe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java runtime error cannot find java.dll