By default my ubuntu system is installed with the following java version:
java version "1.7.0_25" OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
If I type
which java it tells me
Now, I have just installed Oracle's Java from their website and have unpacked it inside the directory:
How do I make the default Java start from
opt/local so that I am using Oracle Java instead of OpenJDK? Is this something I need to auto-configure inside my bashrc?
Thanks, and if you need more information let me know!