jQuery in Action, 3rd edition
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 Head First Android this week in the Android 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

Java runtime error cannot find java.dll

Nirmal JeyaChandra

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

Joined: Feb 21, 2006
Posts: 13
You may want to have a look at this

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
It's not a secret anymore!