I want to change maven java home which is open jdk with sun jdk. How can I do it ?
root@ak-EasyNote-TM98:~# mvn -version Apache Maven 3.0.4 Maven home: /usr/
Even if you install the Oracle JDK, your $JAVA_HOME variable should refer to the path of the JRE that is inside the JDK root. You can refer to my other answer to a similar question for more details.
$JAVA_HOME