#################################################################### # # # 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.0 # # Written by Hayk Martirosyan and Kevin Wayne # # Princeton University # # # #################################################################### Initializing functions and beginning installation... #### Step 1 - Java ################################################# % javac -version javac 1.8.0_111 % java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode) Java 8 appears to be properly installed. Downloading java-introcs execution script from http://introcs.cs.princeton.edu/java/mac-java8/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-java8/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-java8/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-java8/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 Downloading algs4.jar from http://algs4.cs.princeton.edu/code/algs4.jar to /Library/Java/Extensions/algs4.jar #### Step 3 - Checkstyle ########################################## Downloading checkstyle from http://introcs.cs.princeton.edu/java/mac-java8/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 configuration file from http://introcs.cs.princeton.edu/java/mac-java8/checkstyle-introcs.xml to /usr/local/introcs/checkstyle-introcs.xml Downloading checkstyle-cos126 configuration file from http://introcs.cs.princeton.edu/java/mac-java8/checkstyle-cos126.xml to /usr/local/introcs/checkstyle-cos126.xml Downloading checkstyle suppressions file from http://introcs.cs.princeton.edu/java/mac-java8/checkstyle-suppressions.xml to /usr/local/introcs/checkstyle-suppressions.xml Downloading checkstyle-introcs execution script from http://introcs.cs.princeton.edu/java/mac-java8/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-java8/checkstyle-cos126 to /usr/local/bin/checkstyle-cos126 Granting executable permission to /usr/local/bin/checkstyle-cos126 #### Step 4 - Findbugs ############################################ Downloading findbugs from http://introcs.cs.princeton.edu/java/mac-java8/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-introcs configuration file from http://introcs.cs.princeton.edu/java/mac-java8/findbugs-introcs.xml to /usr/local/introcs/findbugs-introcs.xml Downloading findbugs-cos126 configuration file from http://introcs.cs.princeton.edu/java/mac-java8/findbugs-cos126.xml to /usr/local/introcs/findbugs-cos126.xml Downloading findbugs-introcs execution script from http://introcs.cs.princeton.edu/java/mac-java8/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-java8/findbugs-cos126 to /usr/local/bin/findbugs-cos126 Granting executable permission to /usr/local/bin/findbugs-cos126 #### Step 5 - DrJava ############################################## Deleting old version of DrJava at /Applications/DrJava.app Downloading DrJava from http://introcs.cs.princeton.edu/java/mac-java8/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-java8/drjava-config.txt to /Users/wayne/.drjava Creating a shortcut to DrJava on the desktop... #### Step 6 - Terminal ############################################# Creating a shortcut to Terminal on the desktop... #### Step 7 - 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.