So this ones pretty straightforward.
I have both open jre and sun jre on this machine.
When im calling a java command from the terminal, how do i specify which one to use?
eg java -jar executablejar.jar would run the jar file with open JDK.
So this ones pretty straightforward.
I have both open jre and sun jre on this machine.
When im calling a java command from the terminal, how do i specify which one to use?
eg java -jar executablejar.jar would run the jar file with open JDK.
Try:
Here is a very good reference:Code:sudo update-alternatives --config java
http://ubuntuforums.org/showthread.php?t=1517979
Bookmarks