Monday, March 23, 2015

Set JAVA_HOME for Raspbian pre-loaded java 1.8.0

Current Raspbian (version 2015-02-16) preload with java 1.8.0. By default, both java and javac are in PATH (that's why we can run java and javac directly), but no JAVA_HOME set.

This video show how to verify java location, set JAVA_HOME in .bashrc, and verify using jEdit.

- By default, java should be in /usr

- Edit hidden file .bashrc with command:
$ nano .bashrc

- Add the line:
export JAVA_HOME=/usr

- Save and reboot.

No comments: