PDA

View Full Version : Changed the java version


hytechpro
04-11-2006, 09:55 AM
Hi,

I just updated to 5.0 and changed the java version from the java (http://www.hytechpro.com)preferences as instructed in the installation instructions. However, from the terminal if
I type java -version it shows that the 1.4 is still the default. Can someone tell me how to set 5.0 as the default from the terminal.

Thanks:
Hytechpro

jakenoble
04-12-2006, 07:20 PM
You could try un-installing and starting again with a clean install of 5.0

If your using Windows, Control Panel may have a Java button, load this, under the Java tab, then to Applet or Application Settings you can choose which version to enable or disable.

Also you could check your Environment Variables if your using windows, byt right clicking My Computer>Properties>Advanced>Environment Variables. The next bit I cannot remember exactly, but under System Variables there should be PATH and this should contain something like "C:\Program Files\Java\jdk1.5.0_06\bin", or it might be called CLASS_PATH.

Hope that helps.

Roelf
04-13-2006, 08:33 AM
it is the PATH variable you should look for. the OS tries to find the first java.exe so the PATH should lead to the folder where you installed java 5.
CLASSPATH says something about where the java (or javaw) can find the classfiles you need for your program

jakenoble
04-13-2006, 09:54 AM
Thanks Roelf for clearing that up for me, and for the poster

Jake