Configuring j2sdk Config files /etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc Configuration Information Add the following lines to the appropriate file listed above. export JAVA_HOME=/opt/java/j2sdk export PATH=$PATH:$JAVA_HOME/bin