Changing Java from OpenJDK to SunJava

Posted by SpiXel on Super User See other posts from Super User or by SpiXel
Published on 2012-03-20T17:24:31Z Indexed on 2012/03/20 17:31 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

I want to change OpenJDK to SunJava in my ubuntu linux desktop , i have downloaded the "jdk-7.tar.gz" from sun's website, but there problem is how to make the system to use the newly downloaded java ? I tried adding the new jdk/bin/java to my PATH ( from .bashrc ) but that seem not to work (cause probably OpenJDK's path is inside my PATH variable as well , so the system checks that first)

Here's my JDK7 : /usr/lib/jdk7/bin/java
Here's what $(which java) outputs : /usr/bin/java
Thanks in advance

© Super User or respective owner

Related posts about linux

Related posts about ubuntu