Search

How to set java ClassPath in Linux?

1. In terminal execute
  $ sudo gedit /etc/environment
2. Enter as below in editor.
export JAVA_HOME="/usr/lib/JDK1.7";
3. Now add JAVA_HOME to path as shown below.
export PATH="$JAVA_HOME/bin:$PATH"

No comments: