This question already has an answer here:
- Changing JVM in Java 2 answers
I have both java-6-openjdk and java-7-openjdk installed on my machine. When I check the version, I get java version "1.6.0_27". I want to run java 7 but don't really know what all I have to change to accomplish the change.
Is it as simple as changing the link from /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java?