java 1.5 installation

i want to test java.util.concurrent package . it is in java 1.5 .but i have installed java 1.4 . and i dont want to uninstall java 1.4. can i install java 1.5 without uninstalling java 1.4 ?can java 1.4 and java 1.5 co-exist ?
[254 byte] By [navigatora] at [2007-10-2 0:52:10]
# 1
Yes. But it's messy. You need to juggle the environment variables appropriately.
CeciNEstPasUnProgrammeura at 2007-7-15 18:11:48 > top of Java-index,Java Essentials,Java Programming...
# 2

On a WIn98 system, several things happen when a JDK/JRE is installed. There are changes made to the registry. The java.exe and javaw.exe files are copied into the Windows folder. And perhaps? the PATH variable is set to the bin with javac.exe.

The registry entry for jar files is replaced. I use regedit to export the entry for jar files so I can merge it back to save my settings.

Take a look at the parts of your current java installation and perhaps back them up. Installing a new version will replace the old version WITHOUT warning!

I have both 1.4 and 1.5 available and can set the default one by making a registry change and by renaming the java.exe and javaw.exe files in the Windows folder. I keep both versions there but rename the unused one to keep it out of the way.

As previously mentioned, its messy.

A_Sailora at 2007-7-15 18:11:48 > top of Java-index,Java Essentials,Java Programming...
# 3
please please tell me how do i keep both 1.4 and 1.5 in my machine ? OS windows XP .
navigatora at 2007-7-15 18:11:48 > top of Java-index,Java Essentials,Java Programming...
# 4
Install 1.5 to another machine, then copy the installation folder from C:\Programs\Java to your machine and use absolute paths when calling javac/java. Should work without registry settings.
quittea at 2007-7-15 18:11:48 > top of Java-index,Java Essentials,Java Programming...
# 5

it is the Tips of the year.

Install 1.5 to another machine, then copy the installation folder from C:\Programs\Java to your machine and use absolute paths when calling javac/java.

will you bother to tell what do you mean by use absolute paths when calling javac/java. .

say , i copied the installation directory from "c:\Program files\java" to my machine and put that in e:\

so say it becomes e:\java

say i wrote a HelloWorld java code and put that in d:\javasourcecode\Hello.java

How do i compile and run with your java 1.5 now ?

navigatora at 2007-7-15 18:11:48 > top of Java-index,Java Essentials,Java Programming...
# 6
Normally if the java.exe command is on an OS path, you can enter:java <program>Using an absolute path to the java.exe you would:E:\Java\bin\java.exe <program>
A_Sailora at 2007-7-15 18:11:49 > top of Java-index,Java Essentials,Java Programming...
# 7
thanks, yup. it woks
navigatora at 2007-7-15 18:11:49 > top of Java-index,Java Essentials,Java Programming...
# 8
can you have both 1.4 and 1.5 installed and choose the desired version for your browser applets?
edennuriela at 2007-7-15 18:11:49 > top of Java-index,Java Essentials,Java Programming...