Batch to setup JAVA programming environment for Algorithm class from priston

Original web site: http://algs4.cs.princeton.edu/linux/

Part. I

[username:~/]
[username:~/] mkdir algs4
[username:~/] cd algs4
[username:~/algs4/] mkdir bin
[username:~/introcs/] sudo apt-get update
[username:~/introcs/] sudo apt-get install openjdk-7-jdk

Part. II

wget http://algs4.cs.princeton.edu/linux/drjava.jar
wget http://algs4.cs.princeton.edu/linux/drjava
chmod 700 drjava
mv drjava bin
wget http://algs4.cs.princeton.edu/code/stdlib.jar
wget http://algs4.cs.princeton.edu/code/algs4.jar
wget http://algs4.cs.princeton.edu/linux/javac-algs4
wget http://algs4.cs.princeton.edu/linux/java-algs4
chmod 700 javac-algs4 java-algs4
mv javac-algs4 bin
mv java-algs4 bin
wget http://algs4.cs.princeton.edu/linux/checkstyle.zip
wget http://algs4.cs.princeton.edu/linux/findbugs.zip
unzip checkstyle.zip
unzip findbugs.zip
wget http://algs4.cs.princeton.edu/linux/checkstyle.xml
wget http://algs4.cs.princeton.edu/linux/findbugs.xml
wget http://algs4.cs.princeton.edu/linux/checkstyle-algs4
wget http://algs4.cs.princeton.edu/linux/findbugs-algs4
chmod 700 checkstyle-algs4 findbugs-algs4
mv checkstyle-algs4 bin
mv findbugs-algs4 bin
mv checkstyle.xml checkstyle-5.5
mv findbugs.xml findbugs-2.0.3

 

你可能感兴趣的:(Environment)