(You may want to also see Sun's tutorial trail on learning the Java Language)
- Java Compiler
Download J2SE 5.0 (also called J2SE 5.0 SDK). This comes in different flavors, so you'll want to choose the second one down entitled
"JDK 5.0 Update 4"
I recommend that you don't select the first one that has Netbeans bundled with it.
Once you follow this link, you will get to a page where you will need to click on a button to accept the License agreement, then select the first option which is
"Windows Offline Installation, Multi-language " for a size of 56.71 MB (don't do this unless you've got a fast network connection at home)
- BlueJ
To download BlueJ, see http://www.bluej.org/download/download.html where you can download the latest version of BlueJ, version 2.0.5. The Barnes and Kolling BlueJ book also includes the examples (601K .zip file) from that book. See a browsable local copy of these examples. If you are working on these examples in lab, you should save your files either to your desktop or to the H: drive, since you are not allowed to save files on the C: drive. You may consider bringing in a flash drive to save your work.See this set of screen shots showing how to write a BlueJ program that gives output to a terminal window.
Eclipse
This is a nice Integrated Development Environment (IDE). For Eclipse, download the latest version (3.2M1 as of this writing) from
http://download.eclipse.org/eclipse/downloadsDownloadable book
Thinking in Java, 3rd Ed. by Bruce Eckel
Running BlueJ in SEL 2249F (and many other ACCC labs)
See this pictoral tutorial of how to find BlueJ on the ACCC lab machines.
If BlueJ has recently been installed and is not yet configured, you may need the steps below. You may need to do something similar when setting up BlueJ at home. Normally you will not need to do these steps. You will possibly need to do something like the steps below only the first time you run BlueJ on your system.
When BlueJ starts you have to manually choose a Java version. One way to do this is shown in the pictoral tutorial linked to above. Alternatively you can do this two ways:
1. Select the "Search for Java Version" button within the BlueJ popup window. After about 5 seconds, it should find the path to C:\j2sdk1.4.2\bin\java.exe, which you should then select.
2. Choose the option to "browse" for it. When you browse for it the C: drive does not show up. However, if you manually enter in C:\ you will see the C: drive. From there navigate to C:\j2sdk1.4.2\bin and point to java.exe. BlueJ will then work fine.
Running BlueJ in SEL 2254 (CS Linux Lab)
In order to configure your CS account to easily run BlueJ from the Linux lab, you should first copy the CS 107 account settings file into your account. This settings file is called .tcshrc, and it sets up your environment to do various useful things, including correctly setting an alias so that you can easily start up BlueJ. The instructions to copy over this settings file into your account are given below.
You will first need to get a terminal window to use in typing in the commands described below.
Getting a terminal window if you are on the Linux machines:
To get the terminal window, after you login click on the Red Hat on the lower left-hand corner of the screen. From there select the System Tools menu. Then select Terminal (it has a terminal icon that you should click on). See the screenshot.
Updating your settings file
First make sure you are in the root of your home directory (type cd and then press the ENTER key if you're not sure), and type the following two lines after your prompt (press ENTER after each line):
cp ~i107/.tcshrc .
source .tcshrcYou will only need to do the above steps once. After doing it the first time, it will already be set up for you the next time you login.
Running BlueJ
Open up a terminal window and type bluej followed by ENTER. If you are in the Linux lab, BlueJ will start up and you can use it the same as you do on the Windows XP machines.
Customizing your GNOME desktop
The Linux machines are running the GNOME desktop. On the GNOME desktop, you can customize your panel. Open up a new window (right-click on the desktop, then select New Window...), and type the following in the Location text field:
~i102/launchers
Press ENTER and you'll be taken to a directory where you will see three application launchers (shortcuts, in Windows terminology). Drag and drop these application launchers into your panel. See the screenshot.