Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change default Java version

Status
Not open for further replies.

lmohr79

Technical User
Jan 18, 2005
39
US
I'm in the process of building a new PC (Dell Optiplex 745 - Windows XP Professional) - installed Visual Studio .NET 2003 and Java 1.6.01 - upgraded to 1.6.2. - If you need to know what else I've installed, just ask, but I thought these were pertinent to the question.

Problem I'm having is with installing an FTP client that uses JAVA - the FTP software is not recognizing that a version of Java higher than 1.4 is installed.

If I do the java -version command (in CMD.exe), I get Version 1.3.1_01. I've uninstalled an reinstalled 1.6.1 and then upgraded to 1.6.2, but still can't change the default version. Plus I don't even have an option in "Change/Remove Programs" in the Control Panel to remove 1.3.

I've seen items on the web that point to the Path enviromental variables, but not sure what I need to add, if that would even work (tried a couple of different versions of "C:\Program files\JAVA\jre1.6.0_01\bin\" but no luck so far).

Thanks for any help!!!
 
I have no mention of Java in my Environment Variables, not sure that it is necessary.

Apart from the Java program is the Control Panel's Add or Remove applet working correctly?

Any help at the Java forums?


Java Runtime Environment (JRE)

Problem installing Java (Sun)
thread779-1121209

Try running ChkDsk to check your drive for errors. Right-click your Drive icon/ Properties/ Tools/ Error Checking. Select both boxes.

Run the System File Checker program from the Run Box by typing.....Sfc /Scannow in it and have your XP CD handy.

If they don't work you could try repairing windows by running it over itself. You will lose all your windows updates but your files will be untouched.

How to Perform an In-Place Upgrade (Reinstallation) of Windows XP (Q315341)
 
Edit your PATH variable. Delete the old Java path and replace it with the new one, or make sure the new one comes before the old one.
Code:
...;C:\Program files\JAVA\jre1.6.0_01\bin;...
 
Thanks for the responses!

cpjust: I added the PATH variable as suggested - I found a variable for oracle that used jre 1.3.1, so placed the JAVA varaible just before and my FTP client works just fine. I appreciate the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top