I have a jdk1.7.0 directory in / usr / lib / jvm along with other versions of open-jdk. I want my Ubuntu 12.04 to consider this jdk (jdk1.7.0) as the main jdk. I do not want to use open-jdks.
When I enter java -version or javac -version, both times it returns that it uses openjdk and its jre. How to change it to jdk1.7.0?
user1403483
source share