Transferring Files to the GL System

So at some point, you will need to transfer one or more Java files from your home computer onto the GL server in order to 1) test your program on the GL system, and 2) submit your final code. (If you have been developing your project on the lab computers, you will not have to do the transferring step.) There are several ways this can be accomplished.

The first step is to find the place where your Java source files are stored. If you are using something other than Eclipse, you must figure this out for yourself. For Eclipse users, you must go to your workspace directory--Eclipse tells you where this is when it starts up. In the workspace directory, there will be a subdirectory for each of the projects you have ever created: for the rest of this tutorial, we will assume you are working on the project "Proj3".

Use a Flash Drive

The simplest thing that you can do is take your project folder, including all nested subfolders, and put it on a flash drive, come to campus, plug the flash drive into a campus lab computer, and transfer your file to your GL account.

Use SCP

SCP is a program that allows you to transfer files from one server to another via the Secure SHell (SSH) network protocol. For Windows users, here is an excerpt from a good tutorial, created by Dan Hood:

For Mac/Linux users, simply open a terminal window, cd into the directory containing your project, and type the following command:

scp -r <A folder with your files in it> username@linux.gl.umbc.edu:~

The “~” is the name of your GL home directory. If you want the files to land in a subdirectory, simply add the name of the subdirectory after the ~.

So, for example, if your GL username is "jdoe1", and you wanted to transfer Proj3 from your computer to your home directory on the GL system, you would enter:

scp -r Proj3 jdoe1@linux.gl.umbc.edu:~

What's next?

Once you have the files sitting in a directory in your GL account, you will want to make sure that it compiles and runs correctly from the command line on that system.