registry key with different version

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Wei

registry key with different version

Post 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
Michael Schmidt

Re: registry key with different version

Post 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
Post Reply