Most students will have their own laptops, and will want to program on them. This guide exists to help you do that. There are three programming environments here, and you will have to choose the one that is right for you.
Note that all three of these programs are cross-platform and open-source. This means that they work on many operating systems (most importantly, Windows, Macintosh, and Linux), are free for you to download, use, and even modify.
BlueJ is a beginner’s environment. It hides many of the important details from you, but can help beginners get used to programming. If you are enrolled in CSCI 161, this is probably the program you are looking for.
main()
method. (Which is
important!). Be sure to close and re-open BlueJ, or it won’t work.
Emacs is a powerful, text-based text editor. It can appear indimidating, but working with Emacs can help you to understand the inner workings of a Java program in ways that the other tools don’t. To use it, you edit your file from within Emacs, and then you compile using the javac
command from the terminal.
If you are using Linux:
synaptic
or another package manager to download and install the emacs
package.openjdk-7-jdk
package (or another version, if it is more recent).For Windows:
command
program. To allow javac
to work from inside of any directory, you must add its home directory to the “path”. You can find instructions on that here.And for Macintosh:
javac
and emacs
already part of the command-line environment. To open this up, just find the Terminal
program on your computer, and run it.Eclipse is a complete Integrated Development Environment a little like BlueJ. However, it is made for professional developers. If you have a job as a programmer, you will likely be using an environment similar to Eclipse. However, like BlueJ it hides several implementation details from you. It is recommended for the most advanced programmers, who already understand its inner workings, and don’t like Emacs.