This page contains information on
installation and use of software for courses I teach, and where to find
related documentation. The installation instructions are
primarily for your information for a personal machine, as campus
machines will often already have this software installed (and
you may not have privileges for installation anyway). There is
some information here that will be helpful for use of software on
campus machines too, however.
Please
contact me with any questions.
Links may eventually go bad - please contact me if you find this to be
the case, and I will correct them.
This page will be added to as needed.
C/C++
There are many Integrated Development Environments (IDEs) available for
C++. A reasonably good free one is
Microsoft Visual C++
Express.
Java
First, you will need the
Java Development
Kit (JDK). Probably all you'll need is the download labeled
"JDK X Update Y", where X and Y are release numbers.
The only other thing you really need to program in Java is a text
editor. You can then use the executables
javac and
java to
compile and run your programs, respectively. But it may be a bit
easier to use some sort of Integrated Development Environment
(IDE). There are many available for Java, including Eclipse,
NetBeans, JCreator, JBuilder, and many others. A quick Google
search should help you find these IDEs.
If you want a simple IDE for a quick study of Java,
BlueJ may be a
good choice. It is very lightweight and easy to use.
Here are instructions for another IDE,
DrJava,
in case you want to use it instead:
- When you run DrJava, look in the
bottom right corner, where it says "compiler". If the drop-down
box shows no options (just "None"), then you have to do a little
configuring.
- First do a search on your
computer for "tools.jar". If there are multiple files with that
name, choose the one in a directory ending with something like
jdkVERSION\lib, where VERSION matches what you downloaded. (Note
however that Sun, the maker of Java, numbers releases strangely, such
that the JDK 6 download would have a directory name of something like
jdk1.6.)
- Then,
in DrJava, go to Edit-->Preferences-->Resource Locations. In the “Tools.jar Location” field, browse to
the tools.jar file. Hit OK, then close
DrJava completely. Then start it up again. If everything worked out correctly, you
should see the JDK listed in the Compiler drop-down box.
Now DrJava knows where the compiler is. You're ready
to go!
Python
You can download Python
here.
Get the most recent version with a version number less than 3.0:
- At time of writing (8/24/2009), this is version 2.6.2.
- Apparently, some machines have errors when trying
to run version 2.6.2. If this
happens to you, you might consider downloading version 2.5.2 instead.
- Python version 3.0 and above is a dramatic change, making a different
language that we won't really be talking about at this point, so don't
download it expecting to use it in class.
IDLE: To run Python in a very
simple editor (that's actually written in Python) named IDLE, find the
directory where you installed Python (it's probably called
"Python\VERSION_NUMBER" for whatever version you have), and go into
Lib\idlelib\idle.pyw. You should be able to double click this
file to open a text editor. You can then select Run-->Python
Shell to get the interactive shell, or Run-->Run Module to run your
program.
graphics.py: For a simple
graphics library, you may also be interested in the graphics.py file,
available at John Zelle's
Teaching With Python
website. Go to the Lib directory described above, and copy
graphics.py into there. Then you'll be able to import it into
your Python programs. You can test if you did this correctly by
typing "import graphics" (without the quotes) in the Python Shell (that
comes up when you start IDLE) and hitting enter. If you get an
error, then something went wrong. Otherwise you did this
correctly.
graphics.py and Idle: A
warning about using Idle with graphics.py: make sure you always start
Idle by clicking the idle.pyw file (or a corresponding shortcut).
Do not simply right-click on a .py file and choose "Edit with
Idle". Doing so may cause Idle to freeze.
Kill Python: If, due to some
error, Python seems frozen or somehow still partly running such that
you
can't restart it, campus computers have a batch file to kill all
Python-related processes. It's called "Kill Python.bat", and it's
in "Class Programs" directory. With a little bit of
investigation of shortcuts and such, you may be able to copy this batch
file onto your personal machine as well, if you're interested.