Since you've had the pre-requisites, we will assume you know how to
compile and execute Java programs at the command-line.
If this is not the case, you will need to do that IMMEDIATELY
because nothing will work in the class without that. Generally, the
steps involved are:
- Mac or Linux:
- Open a terminal window.
- In the terminal window, make sure you have Java installed by typing:
javac --version
and hit return. You should see something like:
![](cmdline1.png)
In your case, the version number may be different. That's fine, as
long as it's 6.0 or higher. (You'll need to re-install the JDK if
it's a lower version.)
- Make a directory for this course and enter that directory:
cd
cd Desktop
mkdir contalg
cd contalg
This creates a subdirectory from the Desktop, as an example.
- From your browser (where you are reading this),
download HelloWorld.java and
save to the new
contalg
directory.
- Compile and execute in the terminal:
javac HelloWorld.java
java HelloWorld
- You should see something like:
![](cmdline2.png)
(We did this in the Desktop above, you can do this in any
directory, such as the
contalg directory).
- Spend a little time learning basic commandline Unix on your
own. Find a tutorial and learn how to use the following commands
![](cmdline3.png)
- Windows: with Windows, you have three options:
- (Recommended)
Gitbash:
Get Unix to work inside Windows using Gitbash.
- Install a complete Linux OS in a virtual machine like
VirtualBox. Then, do all your work for this course inside that
virtual machine (using Linux). This is have the effect of a
"computer inside a computer" in some sense.
For this purpose, do a search on something like
"How to install Ubuntu inside VirtualBox on Windows".
- Use the remote-Unix facility provided by GW. This gives you
a Unix shell account accessible from a browser.
See
these instructions. You will also need to install the
GW VPN client if you use this
option from off-campus.
Note:
We are not going to be able to help you with the
above. Since you've had several CS courses already, you should be
able to make one of the above options work for you.
Editing and compiling:
- Please DO NOT plan on using an IDE. We will have various
jar files that you'll need to use; these are challenging to
integrate into an IDE. In any case, it's a good idea to practice
using the command-line.
- For an editor, consider learning a simple text editor such as
emacs, vim, notepad++, sublime, atom, and the like.
Getting your directory structure set up:
- You already created the
contalg
directory under your desktop above.
- Under this, create one directory per module. That is,
contalg/module1,
contalg/module2, etc.
- Similarly, under
contalg
create one for each assignment as and when you need to.
For example, for Assignment 1, you will have
contalg/assignment1,
- You will end up creating a zip of these sub-folders for submission.
Categories of work