Cluster Computer set up in Friend 016/017
If you arrived here because your laptop just crashed mid-exam:
Don't panic! We won't count the set-up time against you if your laptop failed mid-exam and you just moved here.
Trouble logging in? (The password box shakes at you.) Click restart.
Instructions
- In case of trouble following any of the steps below, tell a preceptor.
- If you've never done it before, Enable your Unix account.
Follow the instructions on
this OIT page.
- Use your user account folder (or a subfolder thereof) so your work is permanently saved.
- On OS/X, this should be your username folder.
- On Windows, this should automatically appear as the H:\
drive.
- In case of trouble see the full instructions
here.
- Download whichever of the following you want:
place them in your user account folder
(or whatever subdirectory you're using to write and compile your code).
Installing all of stdlib.jar is not necessary for exams
and may be time-consuming. Remember to compile them.
- To access the tools:
- In OS/X, use the Spotlight to find Terminal and DrJava.
- Terminal will usually wake up in the MACOSXFILES directory.
Type cd .. to back up one directory to your user account folder.
- Create a sub-folder for the exam or assignment in this user account folder,
then cd into it. Store all pertinent files in this sub-folder.
- In DrJava use Save As to save the files into this sub-folder.
(/Users/username/subfoldername/filename should appear at the top
of the DrJava window, where username is your username,
subfoldername is the name of the sub-folder you just created, and
filename is the name of your file.)
- In Terminal, cd from your user directory to the correct directory.
You can compile and run from the command line.
- NOTE: If you compile in DrJava, you can run in either DrJava or Terminal.
If you compile in Terminal, you will only be able to run in Terminal.
You will not be able to run in DrJava until you
re-compile in DrJava.
- To submit, go to the submission page, click Choose File
or Browse and
use the dropdown menu at the top of the mini-window that appears to
select your user directory, the sub-folder, and finally your file.
- In Windows,
- Click on the Start Menu (bottom left) and type cmd
to get the Command Prompt.
In the Command Prompt, type "H:" (and return/enter) to
navigate from the C drive to the H drive.
- Create a sub-folder on your H drive for the exam or assignment,
then cd into it. Store all pertinent files in this sub-folder.
- There may be a DrJava icon on the Desktop. DO NOT USE IT! It is broken.
- As of Fall 2014, DrJava has a shortcut in the Applications folder.
The Applications folder is on the Desktop (on the left, towards the top).
Open the Applications folder. Click on DrJava. Close the Applications folder.
- In DrJava, use the Compiler drop-down menu (at the lower right) and
select the Eclipse Compiler option or the JDK 7 option.
- Note: You will need to compile in DrJava, but you will be able to
run your program in either DrJava or Command Prompt.
- To submit, go to the submission page, click Choose File
or Browse and
select your name directory in the mini-window that appears, then
select your user directory, the sub-folder, and finally your file.
- Check that everything works. Here's a short test program: Test.java.
- Important for exams:
If you arrived here because your laptop just crashed mid-exam, once
everything looks good, tell the proctor/preceptor that you're ready to start work, so we can measure a total working time of 90 minutes for you.
- Remember to log off!
- In OS/X: Top left, use the dropdown menu from the apple.
- In Windows: Bottom left, click on the Start menu, click log off.