compiling problem!!!

I have downloaded j2re and installed it according to the instructions.I also have jdk1.3 on my PC. Ihave set the classpath for jdk1.3 . When I try to compile any java file, the error given is as folows:

"Can't find registry keyjavasoft\JavaRuntimeEnvironment\current version

Error:Can't find java.dll

Error:Can't find Java RuntimeEnvironment 2"

Please help!

[405 byte] By [shilpa1_j1] at [2007-9-26 3:37:41]
# 1
If you have nothing to loose, the best thing to do is uninstall JDK and JRE and install JDK again.
neville_sequeira at 2007-6-29 12:10:21 > top of Java-index,Developer Tools,Java Compiler...
# 2

You should read the instilation instructions of the JDK. there is a place where it explanes how to se the $CLASSPATH and $JAVAHOME you should set the environment variables appropriatly.

What is happening is you're JDK is trying to use JVM class files, and oddly enough, you can't compile.

musheno at 2007-6-29 12:10:21 > top of Java-index,Developer Tools,Java Compiler...
# 3
have you set the path as well as the classpath?
acethrowbot at 2007-6-29 12:10:21 > top of Java-index,Developer Tools,Java Compiler...
# 4
Had that before. Typically when I installed and deinstalled different versions of JDK in different order.Best thing to do is deinstall all JDKs you have mentioned in the [add/remove software] in windows and reinstall the latest version you want to have.Dieter
dieterd at 2007-6-29 12:10:21 > top of Java-index,Developer Tools,Java Compiler...
# 5
Did you set the JAVA_HOME, or have some streinge script interfearing, or did you modify your instalation?I have no problems with the same thing!Todd_Musheno@yahoo.com
musheno at 2007-6-29 12:10:21 > top of Java-index,Developer Tools,Java Compiler...