Installing both of JDK 1.4.x and 1.5.x

Matt Galvin matt.t.galvin at gmail.com
Fri Apr 8 17:02:47 UTC 2005


Yes you can use both, I do for a similar reason, here is what I do.

NOTE: I do this all in /opt

Download the 1.4 and 1.5 .bin files from sun.

sh ...1.4.bin
sh ...1.5.bin

export JAVA_HOME=/opt/jdk1.5.0; # (or whatever you call your dir)
export PATH=$JAVA_HOME/bin:$PATH

... do stuff with Java 5 (1.5) ...

export JAVA_HOME=/opt/j2sdk1.4.2; # (or whatever you call your dir)
export PATH=$JAVA_HOME/bin:$PATH

.. do stuff with Java 2 (1.4)

If you want to use both at the same time open 2 shells, in one shell
export the Java 1.5 stuff in the other shell export the Java 1.4 stuff
and use them both at the same time :)

Hope this helps,

Matt

On Apr 7, 2005 6:20 PM, Behrang Saeedzadeh <behrangsa at gmail.com> wrote:
> Sorry but I'm a little confused. I installed JDK 1.5.0_01 via apt. Now
> can I use JDK 1.4.2 by untarring it to some non standard location? And
> in the Sun's JDK download page I only see one RPM file and one bin
> file. There's no tar file.
> 
> Thanks in advance,
> - Behi.
> 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list