####################################################################

#                                                                  #

#  8888888          888                     .d8888b.   .d8888b.    #

#    888            888                    d88P  Y88b d88P  Y88b   #

#    888            888                    888    888 Y88b.        #

#    888   88888b.  888888 888d888 .d88b.  888         "Y888b.     #

#    888   888 "88b 888    888P"  d88""88b 888            "Y88b.   #

#    888   888  888 888    888    888  888 888    888       "888   #

#    888   888  888 Y88b.  888    Y88..88P Y88b  d88P Y88b  d88P   #

#  8888888 888  888  "Y888 888     "Y88P"   "Y8888P"   "Y8888P"    #

#                                                                  #

####################################################################

#                                                                  #

# Java Programming Environment Setup                               #

# for Mac OS X - v4.2                                              #

# Written by Hayk Martirosyan and Kevin Wayne                      #

# Princeton University                                             #

#                                                                  #

####################################################################


Initializing functions and beginning installation...


#### Step 1 - Java #################################################


% javac -version

javac 1.8.0_144


% java -version

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)


Java 8 appears to be properly installed.


Downloading java-introcs execution script from

http://introcs.cs.princeton.edu/java/mac/java-introcs

to

/usr/local/bin/java-introcs


Granting executable permission to

/usr/local/bin/java-introcs


Downloading javac-introcs execution script from

http://introcs.cs.princeton.edu/java/mac/javac-introcs

to

/usr/local/bin/javac-introcs


Granting executable permission to

/usr/local/bin/javac-introcs


Downloading java-cos126 execution script from

http://introcs.cs.princeton.edu/java/mac/java-cos126

to

/usr/local/bin/java-cos126


Granting executable permission to

/usr/local/bin/java-cos126


Downloading javac-cos126 execution script from

http://introcs.cs.princeton.edu/java/mac/javac-cos126

to

/usr/local/bin/javac-cos126


Granting executable permission to

/usr/local/bin/javac-cos126


#### Step 2 - Textbook Libraries ##################################


Downloading stdlib.jar from

http://introcs.cs.princeton.edu/java/stdlib/stdlib.jar

to

/usr/local/introcs/stdlib.jar


#### Step 3 - Findbugs ############################################


Downloading findbugs from

http://introcs.cs.princeton.edu/java/mac/findbugs.zip

to

/usr/local/introcs/findbugs.zip


Extracting zip archive in place at

/usr/local/introcs/findbugs.zip

and deleting .zip file.


Downloading findbugs.xml configuration file from

http://introcs.cs.princeton.edu/java/mac/findbugs.xml

to

/usr/local/introcs/findbugs.xml


Downloading findbugs-introcs execution script from

http://introcs.cs.princeton.edu/java/mac/findbugs-introcs

to

/usr/local/bin/findbugs-introcs


Granting executable permission to

/usr/local/bin/findbugs-introcs


Downloading findbugs-cos126 execution script from

http://introcs.cs.princeton.edu/java/mac/findbugs-cos126

to

/usr/local/bin/findbugs-cos126


Granting executable permission to

/usr/local/bin/findbugs-cos126


#### Step 4 - PMD ############################################


Downloading pmd from

http://introcs.cs.princeton.edu/java/mac/pmd.zip

to

/usr/local/introcs/pmd.zip


Extracting zip archive in place at

/usr/local/introcs/pmd.zip

and deleting .zip file.


Downloading pmd.xml configuration file from

http://introcs.cs.princeton.edu/java/mac/pmd.xml

to

/usr/local/introcs/pmd.xml


Downloading pmd-introcs execution script from

http://introcs.cs.princeton.edu/java/mac/pmd-introcs

to

/usr/local/bin/pmd-introcs


Granting executable permission to

/usr/local/bin/pmd-introcs


Downloading pmd-cos126 execution script from

http://introcs.cs.princeton.edu/java/mac/pmd-cos126

to

/usr/local/bin/pmd-cos126


Granting executable permission to

/usr/local/bin/pmd-cos126


#### Step 5 - Checkstyle ##########################################


Downloading checkstyle from

http://introcs.cs.princeton.edu/java/mac/checkstyle.zip

to

/usr/local/introcs/checkstyle.zip


Extracting zip archive in place at

/usr/local/introcs/checkstyle.zip

and deleting .zip file.


Downloading checkstyle-introcs.xml configuration file from

http://introcs.cs.princeton.edu/java/mac/checkstyle-introcs.xml

to

/usr/local/introcs/checkstyle-introcs.xml


Downloading checkstyle-cos126.xml configuration file from

http://introcs.cs.princeton.edu/java/mac/checkstyle-cos126.xml

to

/usr/local/introcs/checkstyle-cos126.xml


Downloading checkstyle-suppressions.xml file from

http://introcs.cs.princeton.edu/java/mac/checkstyle-suppressions.xml

to

/usr/local/introcs/checkstyle-suppressions.xml


Downloading checkstyle-introcs execution script from

http://introcs.cs.princeton.edu/java/mac/checkstyle-introcs

to

/usr/local/bin/checkstyle-introcs


Granting executable permission to

/usr/local/bin/checkstyle-introcs


Downloading checkstyle-cos126 execution script from

http://introcs.cs.princeton.edu/java/mac/checkstyle-cos126

to

/usr/local/bin/checkstyle-cos126


Granting executable permission to

/usr/local/bin/checkstyle-cos126


#### Step 6 - DrJava ##############################################


Deleting old version of DrJava at

/Applications/DrJava.app


Downloading DrJava from

http://introcs.cs.princeton.edu/java/mac/DrJava.zip

to

/Applications/DrJava.zip


Extracting zip archive in place at

/Applications/DrJava.zip

to create

/Applications/DrJava.app


Downloading DrJava configuration file from

http://introcs.cs.princeton.edu/java/mac/.drjava

to

/Users/wayne/.drjava


Creating a shortcut to DrJava on the desktop...


#### Step 7 - Terminal #############################################


Creating a shortcut to Terminal on the desktop...


#### Step 8 - Test it out! #########################################


Downloading the test Java program...


Installation complete! Compiling test program...

Test program compiled. Running...


If you saw the bullseye and textbook graphic, the installation

was successful and you are ready to start programming in Java.

Continue with the introductory tutorial on the booksite.


NOTE: If there were any error messages during this setup, check the

troubleshooting section on the website or ask for help.


A log file of this installation is saved at

/usr/local/introcs/log.txt


You should now close this window.