Mixed java version installed

Posted by david99world on Ask Ubuntu See other posts from Ask Ubuntu or by david99world
Published on 2012-07-10T21:16:42Z Indexed on 2012/07/10 21:24 UTC
Read the original article Hit count: 268

Filed under:

I've got the following in /.bashrc

    export JAVA_HOME=/usr/bin/jdk1.7.0_03/ 
export PATH=$PATH:/usr/bin/jdk1.7.0_03/bin

This is fine, if I do $JAVA_HOME I get the directory above.

The problem is if I do java -version I get...

OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

How do I make the official jdk version the right one?

Sorry I'm extremely new to Ubuntu.

Thanks,

David

© Ask Ubuntu or respective owner

Related posts about java