Hello!
When typing java.exe in my shell, it says, version 1.4.2_03 is used
(also with "which" command). But Ant uses a different version from my
*current and correct* JDK installation. I checked both versions in the
JDK's ./bin and ./jre/bin dirs, *both* are version 1.4.2._03.
Why does my Ant use some 1.4.2_01 version then? I print the Java version
on startup, that's why I know which one is used. I also print the JRE
location, which is in the JDK ./bin/jre directory, when run via Ant.
Huh? I checked before, the JRE is version 1.4.2_03 there, but some
version 1.4.2_01 is used.
I also also checked my environment variables, but JAVA_HOME points to
the JDK dir.
Any ideas on this???
Karsten
PS: I have done several JDK upgrades in the last few months, but all
went into the same dir.
Karthik - 24 May 2004 20:43 GMT
> Hello!
>
[quoted text clipped - 19 lines]
> PS: I have done several JDK upgrades in the last few months, but all
> went into the same dir.
As a thumb rule, it is a crime to have more than one JDK in your system.
i) Uninstall all the JREs (Runtime environments) from your system.
ii) Uninstall all the JDKs from your system.
iii) Delete the JAVA_HOME directory.
iv) Reinstall ( no upgrade, please ) JDK , the correct version that you
want .
That should put an end to all the problems.

Signature
Karthik.
Humans please 'removeme_' for my real email.