CS 112
Java on SGI at Smith
Where
For CS112 students:
- The editor (emacs) and compiler (javac) are located on the SGI machine
hermite.csc.smith.edu. To view the applets, use the Netscape browser
on the local machine where you do your work (which can be a PC, MAC, Sparc
station or even an SGI workstation).
How
From any computer except the workstations in McConnell
- Telnet from any computer to hermite.csc.smith.edu.
- Type "emacs filename.java" to write your code.
- Type "javac filename.java" to compile your code. The result is in class
file(s).
- Use emacs again to create an html file.
- Put the java file, the class file, and the HTML file in your public_html
directory by typing "mv filename public_html/filename".
- Change the permissions with "chmod a+r filename".
- View the applet with Netscape.
- If you are moving your files into a separate directory in public_html, make
sure that that directory has the appropriate read-execute permissions by
typing "chmod a+rx directoryname".
From a workstation
- Log on to a workstation with your class account.
- In the local window, type "xhosts + hermite."
- Telnet to hermite.
- To call the Java developing program type "iconcatalog&."
- A window with icons should appear. Go to the far right tab and click the mouse, a menu should appear.
- Choose Web Tools from the menu.
- Scroll down the Web Tools window until you find the Cosmo Code icon. Click on this icon.
- A new window appears. From the widow, go to Project/New.
- A new window should appear. Give your project a name and choos to edit now. Leave all other options as they are.
- After returning to the Cosmo Code window, double click on the icon with the java extension and edit your code.
- Save your code under File/Save.
- To compile, click on the toolbar icon that has a picture of a hammer. This icon refers to the "build" command.
- To view your applet go to Project/Preview.
- To view your applet on Netscape move your files to public_html and run Netscape as usual.