Blog Archives

Check and export Java path and version Ubuntu

Check java version: java -version Check path of installed java: readlink -f $(which java Note: remove /bin/java from end of path In ~/.bashrc file add following command at the end: export JAVA_HOME=’/usr/lib/jvm/java-7-openjdk-amd64/jre/’ Now run: source ~/.bashrc Advertisements

Tagged with:
Posted in java
StackOverFlow
Categories
Archives