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.
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 ?