Installing both of JDK 1.4.x and 1.5.x

Paco Ros Cifre paco at bergantells.net
Thu Apr 7 21:54:35 UTC 2005


El Jueves, 7 de Abril de 2005 22:58, Behrang Saeedzadeh escribió:
> Hi
>
> Has anybody installed two different versions of JDK (1.4.x and 1.5.x in my
> case) on his system? I have projects that have to be compiled with 1.4.x
> and projects that must be compiled with 1.5.x. I've already installed
> 1.5.0_01via apt and wanted to know how can I install
> 1.4.2 beside it without any negative side effects.

I use to install all Java stuff under /opt dir and link java, javac, ... etc 
to /etc/alternatives.

I've also used a /opt/jdk link to jdk's current version.

Anyway, export JAVA_HOME=/path/to/desired/isntallation shoult solve all your 
problems.

Regards
-- 
Paco




More information about the ubuntu-users mailing list