Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / May 2004

Tip: Looking for answers? Try searching our database.

Ant question (wrong java.exe used)

Thread view: 
Karsten Wutzke - 24 May 2004 20:16 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.