Skip to content

Instantly share code, notes, and snippets.

@alexandre
Created January 5, 2015 06:54
Show Gist options
  • Select an option

  • Save alexandre/c406be51813807dcc644 to your computer and use it in GitHub Desktop.

Select an option

Save alexandre/c406be51813807dcc644 to your computer and use it in GitHub Desktop.
Oracle Jdk Slackware64 14.1
$ tar -xzvf jdk*linux-*.tar.gz
$ rm jdk*linux.tar.gz
# mkdir /opt/java
# mv jdk.... /opt/java/
# cd /opt/java
# ln -s jdk1.7.0_03 jdk
# vim /etc/profile
export JAVA_HOME="/opt/java/jdk"
export CLASSPATH="$JAVA_HOME/lib":$CLASSPATH
export PATH="$JAVA_HOME/bin":$PATH
export MANPATH="$JAVA_HOME/man":$MANPATH
# ln -s /opt/java/jdk/bin/java /usr/local/bin/
# ln -s /opt/java/jdk/bin/javac /usr/local/bin/
# ln -s /usr/lib64/mozilla/plugins /usr/<lib/lib64>/firefox*/plugins
# ln -s /opt/java/jdk/jre/lib/<i386/amd64>/libnpjp2.so /usr/<lib/lib64>/firefox/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment