INSTALLING JAVA


A. ON MOST COMPUTERS
(Use these instructions for computers at home, at your place of employment,
or at University locations such as Gorham, Lewiston, Augusta, or Bangor,
where most courses are offered "live" on-site.)


  1. Get a textbook with the CD-ROM included.
  2. Find a computer that you will use for this course.
  3. Insert CD-ROM and click "My computer", then "D: LAMBERT". (If an extra external disk drive is present, you may need to use "E:LAMBERT" instead.)
    Follow instructions until installation is complete.
  4. Use "Find" (or "Search") to find the JBuilder program (the version listed as "shortcut" in the "type" column); copy its icon to the desktop.
  5. Use Windows Explorer to view disk drives C: and D:   (To reveal the contents of any folder that displays a + sign before its name, click on the + sign.)
    On drive C: locate folder JBuilder2; within JBuilder2, locate folder java; within java, locate folder bin. The complete pathname is thus C:\JBuilder2\java\bin.
    On drive D: (or possibly E:) locate folder BreezyGUI; click and drag this folder and drop it into C:\JBuilder2\java\bin. (This operation copies the BreezyGUI folder, and its contents, onto the hard drive and into the desired directory.)
  6. Change directory defaults--
    Go into the JBuilder program
    and click: Tools, then Default Project Properties. Then click the box for "Source root directory" and change it to C:\JBuilder2\java\bin and also do the same for "Output root directory".
NOTE: If you use a computer that you own, you only need to install Java once. On a public university computer, however, you may need to repeat this installation every time you use Java. Make sure to copy your work onto your floppy disk each time before you leave the computer.


B. AT UNET SITES AND CENTERS
(Use these instructions at Bath/Brunswick and at other University locations where the computers are maintained by UNET. Most of these locations are in high schools or other non-university buildings that receive ITV but that seldom offer "live" university courses on-site.)

  1. Insert a formatted floppy disk into drive A:
  2. Start Netscape.
  3. Enter the following URL:
    Http://www.unet.maine.edu/ToolBox.html
  4. Scroll down and click on the link to JBuilder2
    • If you get the message "ICA link launched", click the "Back" button and select JBuilder2 again. If you get this message a second time, e-mail me about it.
    • If you get the error message "You have started to download a file of unknown type x-ica," stop the program and e-mail me.
  5. If you are prompted for a User name, type "jbuilder".
  6. You will need a password-- I will send it to any student who requests it (but cannot post it for all to see).
  7. Once the program is launched, click "Tools", then "Default Project Properties". Change "Source root directory" to A: and change "Output root directory" to A: then click "OK".
  8. Use the floppy disk to save your work. Make sure to take your floppy with you whenever you leave, and always keep an extra backup copy.


    BUILDING YOUR SOURCE FILES

    You can go into MS-DOS You should give your programs file names like ProgramName.java. If you are using the hard drive (using paragraph "A" above), build your programs in the directory C:\JBuilder2\java\bin. If you are following paragraph "B" above, build your programs in directory A:\ on your floppy disk. You can go into MS-DOS and build your file with the EDIT command, or, if you prefer, you can also use Notepad from within Windows.


    COMPILING YOUR PROGRAM

    You can compile ("Make" or "Build") your program in JBuilder2, or you can go into MS-DOS and type:
            cd  \JBuilder2\java\bin      [to get into the right folder]
            javac  ProgramName.java  

    RUNNING YOUR JAVA PROGRAM

    To run your program while in MS-DOS, type:
            cd  \JBuilder2\java\bin       [to get into the right folder]
            java  ProgramName