[CentOS] java 1.6 and 1.7 on CentOS

Tue Aug 19 11:06:34 UTC 2014
Asma rabe <asma.rabe at gmail.com>

Hi ,


I have java 1.7 installed on CentOS machine. when i tried to run java
program i got an error and found that i should run it using java 1.6.


Is the best solution to install Java 1.6 and have both java 1.6 and java
1.7 at same time? or is there a better solution.


If i should install both java 1.6 and 1.7 , how to do that ?


Thank you very much.


Best Regards,

Asma