Yes you can have both.

use 
whereis java
or 
which java
to find where are your java installed versions

java -version
to know the one you use currently

then set the JAVA_HOME in path to use the one you want

Don't ask more, help yourself with Google ;o)
http://www.ducea.com/2010/08/09/multiple-java-versions-on-debian/
http://anshee.blogspot.de/2008/05/multiple-versions-of-java-on-debian.html
http://blog.mypapit.net/2007/10/how-to-switch-between-different-java-jvm-in-ubuntu-and-debian-gnu-linux.html

Jacques

From: "Info Olagos" <[email protected]>
> Hello,
> 
> What is the best way to install the sun java 6 jdk and jre on Debian Linux?
> 
> I first installed OpenJDK but it gives errors when i start ./ant in
> ofbiz12.0.4 .
> 
> Can i install sun java 6 over it? or do i have to remove first openJDK java.
> 
> regards,
> Eric
> 
> -- 
> Olagos bvba
> http://www.olagos.eu
> http://www.olagos.com
> http://www.olagos.be
> http://www.olagos.nl

Reply via email to