- Run the following command to determine the default jre being used by the system.
- /usr/sbin/alternatives --config java
- If the JRE used is not the one from the JDK execute the following command so that the default JRE is the one that belongs to the JDK.
- /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_16/bin/java 2
Friday, April 23, 2010
Java changing the default JRE
If you installed a new version of the JDK or JRE you may need to run the following commands to change the default JRE. Use java -version or the command below to determine which JRE the system is currently using.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment