- Log in: Connect to STDSUN (Solaris), and fill the requested information in the fields of the login
window
- User-id: first-initial+last name (typically), last name+first-initial (common), last name (possible), leading 8
characters of last name (in case of long names), other (sometimes)
- Password: last four digits of the student’s ID number + initial character of firstname + initial letter of lastname.
- First-time log in: the system will prompt for a change of password.
- Previous users of CIS accounts: old username and password.
[more on passwords]
- Open two windows: Netscape, Terminal.
- If you read the instructions from the handout, enter with the Netscape browser the web page
to find the rest of the instructions.
- Download the attached code ‘draw.java’ through your browser (by clicking on the icon with the right button of
the mouse, and saving it into your directory).
- Our platform uses the Unix operating system. The following are examples of recognizable commands.
- date
- ls
List files in current directory
- cat file_name
Display the file
- pwd
Print the name of the working directory
- mail mail_address < file_name
- cp from_filename to_filename - Copy file
- mv from_filename to_filename - Move file
- rm filename - Delete file
File names consist of letters, digits, and underscores
Open the terminal window and issue the four leading commands from the above list.
- Email the file ‘draw.java’ to yourself.
- Issue the instruction ‘cat .subscriptions’ in the terminal window.
If the entry ‘JDK-CURRENT’ is not shown in the output, setup java now.
- Compile the file with the command ‘javac draw.java’.
- View the outcome with the command ‘appletviewer draw.java &’.
- Copy the file with the unix command ‘cp draw.java mydraw.java’
- Check the outcome with the unix command ‘ls’.
- Compile the new file--you should get error messages.
- Create documentation for your program with the command line ‘javadoc -package draw.java’, and inspect the
output at ‘draw.html’ with your browser.