title: Switch from open jdk to Sun jdk
body: <p>I have jdk1.7.0 directory in /usr/lib/jvm  along with other open-jdk versions. I want my Ubuntu 12.04 to treat this jdk(jdk1.7.0) as its primary jdk i.e. I dont want to use open-jdks.</p>
  
  <p>When I type java -version or javac -version, both the times it returns that it is using openjdk and its jre. How can change it to jdk1.7.0?</p>