Page 1 of 1

registry key with different version

Posted: Fri Dec 21, 2001 7:10 pm
by Wei
Hi,

When I try to compile my java files, the following error message
showed:

Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.3', but '1.2' is required.

I have C:\jdk1.2.2 and
C:\PROGRAM FILES\JavaSoft\Jre\1.3.1_02 in my CLASSPATH

How should I correct it?

Please help!

Wei

Re: registry key with different version

Posted: Sat Jan 05, 2002 9:07 am
by Michael Schmidt
If you have installed jre1.3 after jdk 1.2 the registry entries are changed to version 1.3. The javac compiler you call is still version 1.2. Hence the error message.
Since you only have a Java Runtime Environment for version 1.3, which does not contain a javac compiler, this configuration will not work.

Ether install a Java Development Kit version 1.3 and change your PATH varable to point to the 1.3 compiler or change the registry keys back to version 1.2 values or reinstall the version 1.2 JDK.

Hope this helps
Michael