Skip to content

Instantly share code, notes, and snippets.

@abby-sergz
Created December 13, 2012 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abby-sergz/4277913 to your computer and use it in GitHub Desktop.
Save abby-sergz/4277913 to your computer and use it in GitHub Desktop.
if [ -d .bashrc.d ]; then
for i in .bashrc.d/*.conf; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
ls -l Downloads/jdk*.tar.gz
export JAVA_HOME=~/ProgramFiles/jdk-7u10-linux-i586/jdk1.7.0_10/
export JDK_HOME=~/ProgramFiles/jdk-7u10-linux-i586/jdk1.7.0_10/
#export JAVA_OPTS=""
PATH=${JAVA_HOME}/bin:${PATH}
install -d ~/ProgramFiles/jdk-7u10-linux-i586
tar xzf ~/Downloads/jdk-7u10-linux-i586.tar.gz -C ~/ProgramFiles/jdk-7u10-linux-i586
install -d ~/.bashrc.d
vim .bashrc.d/java.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment