Skip to content

Instantly share code, notes, and snippets.

@hdyen
Last active August 29, 2015 14:08
Show Gist options
  • Save hdyen/6fa7cf1530752d7ddbad to your computer and use it in GitHub Desktop.
Save hdyen/6fa7cf1530752d7ddbad to your computer and use it in GitHub Desktop.
Linux Development Enviroment Setting Up

Linux Development Enviroment Setting Up

Everytime after reinstall the system, there are lots of settings to do. I try to log down some todos reminding me these setting up.

JDK

  1. Download Java SE.

  2. Uncompress the tarball.

Assume you have downloaded jdk-8u25-linux-x64.tar.gz into ~/Downloads/.

cd ~/Downloads
tar xzvf jdk-8u25-linux-x64.tar.gz
sudo mkdir -p /opt
sudo mv jdk1.8.0_25 /opt/
  1. Setup enviroment variable

Add the following into /etc/profile:

export PATH=/opt/jdk1.8.0_25/bin:$PATH
export CLASSPATH=.:/opt/jdk1.8.0_25/lib:$CLASSPATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment