Lab 0: Hello World
Due: Thursday, Jan. 28, 11:59pm
The goal of this lab is to set up your Java development environment and become familiar with submitting assignments on the Unix server. If you want to use Eclipse (optional but recommended) and you have a Mac, the video below will guide you through the entirety of Lab 0. If you are not using Eclipse or you have Windows, the video will still encompass most of Lab 0, just make a few small tweaks described in the steps below.
(Notes: zoom out until the video matches your screen size. If you are doing this during lab section, turn off the sound.)
aurora.smith.eduThere might be a warning/error message, but in this case you can proceed. Then, when prompted, log in with your class account username and password.
ssh username@aurora.smith.edureplacing "username" with your class account username, and enter your password.
cd public_html mkdir lab0 cd lab0
scp HelloWorld.java username@aurora.smith.edu:public_html/lab0/
If you have Windows you can either use Cyberduck or the Putty secure copy client here:
pscp.exe
Here is a tutorial on how to use this executable to copy files from
a Windows machine to a Linux machine:
PSCP
tutorial
The short version is very similar to Mac and Linux. In the Windows
terminal (cmd), navigate to the folder where your code is and run:
pscp HelloWorld.java username@aurora.smith.edu:public_html/lab0/
emacs HelloWorld.javaand then paste in the contents of the above linked file.
cd public_html/lab0/
javac HelloWorld.java
java HelloWorld
rsubmit lab0 HelloWorld.javaIf everything went well and you saw the message, you have completed Lab 0!