Instructions for compiling and running the Documentation problem set -------------------------------------------------------------------- In Lab: ------- 1) Start Java Workshop 2) Show Project Manager and select Add->Project 3) Use Browse to select S:\Documentation\Documentation.prj 4) Make sure to select "Make a copy ...", then press Next. 5) When asked for the directory, say U:\Documentation After this is done, Java Workshop will copy the pertinent .java files from S:\Documentation to U:\Documentation. You should be able to see the Documentation project in the Project Manager. You can now build your program and run it (build it first before running it). (Note: when you build, JWS will create a subdirectory U:\Documentation\Calculator, where the .class files will be placed). If you want to test things, you can edit the appropriate files, build (or compile them), and then run them to see what happens. If you want to use System.out.println, you can open Windows->Java Console (under JWS) to see the output. on Athena: --------- 1) Setup Java as you did for previous labs, including paths and CLASSPATHs 2) cd to _your own_ 6.096 subdirectory 3) mkdir Documentation cd Documentation 4) (you should now be in (your homedir)/6.096/Documentation) cp /mit/6.096/share/java/Documentation/*.java . (the last "." above is necessary) At this point, you will have the .java files in your directory. You can then edit the files using emacs. To build and run, do the following: 5) (from your 6.096/Documentation subdir) javac -d . *.java This will create a Calculator subdir, which will contain the .class files. 6) To run it, type (from your 6.096/Documentation (_not_ Calculator) subdir): java Calculator.Main