Java Notes & Reference

Java Notes & Reference
      Java Notes
      Java Reference
            Downloads (Java SDK, BlueJ, Eclipse)
            Free online Java books / tutorials
            Running BlueJ in SEL 2058 ACCC lab
            Running BlueJ in the CS Lab (SEL 2254 Linux Lab)
     Other Java links (API reference, precedence, advanced topics)

Java Notes


Java Reference

Downloads for getting started

Online Java Books and Tutorials

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 .tcshrc

You 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:


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.

Other Java links

[CS Dept] [UIC] [Prof. Reed]