Working From Home
The department invests a lot of resources into keeping the computer lab open most of the week. There you can find help from a lab representative with computer use issues like copying files, using the right compiler, and running applications. Still, since almost everyone has their own computer, this page describes how you can get some of your homework done at home. Downloads
Although most computers already have Java, you may need to download the development version to get access to a compiler. Also, if you would like to use Eclipse a download link is provided. Note that Eclipse is not necessary, any text editor can be used to write Java. Copying files to your account
As all homeworks require you to place your files in the appropriate folder on your account, you will need to copy files from your home computer to the system at school. Furthermore, just because homework seems to work on your home system, does not mean it is correct. You MUST test your homework in the lab to make sure it is correct.
The command assumes your Current Working Directory contains the GuessingGame.java file. It also requires you to specify your username instead of "myusername". Finally, I chose machine lab0z for this example (the only machine that works).
Windows Remote login to lab machines
Mac OS X / Unix / Linux
Once you press return, you will be prompted for password. You might also be prompted to verify the key. If so, type yes and press return. Windows You will need to download an external software (that is free) called PuTTY. This is a direct link to the executable file. All you need to do is to save this file on your computer and run it. Once you start the program just use the following:
If PuTTY gives a security alert, click Yes (this might happen, but does not have to). Type your user name and password when prompted (the same as you use to login in lab). Then you will be logged in. In the terminal window you cannot use gedit, which is graphical editor. Instead of it you can use pico. Pico is a very simple editor, where you can navigate using arrow-keys. To save the file press Ctrl+o, to exit Ctrl+x (as described in the bottom of the terminal). A little bit more information about pico can be found here: http://www.ece.uwaterloo.ca/~ece250/Online/Unix/pico/ Compiling and running Java
Mac OS X / Unix / Linux |