Step 1: Install the Java Development Kit (JDK) from Sun:
Step 2: Install one of * ONE * of the following IDE: JCreator :
- JCreator: Install v3.50 under "JCreator Classics". This is the version found in the ITS labs at this time.
- Eclipse: http://www.eclipse.org/downloads/
- NetBeans: http://www.netbeans.org
On Mac OS X systems, Java (JDK) is already available so you do not need to install it.
- Use Command line to debug your programs (reliable)
OR
- Install NetBeans - BlueJ Edition:
- Click here to donwload NetBeans - BlueJ Edition
- Then select and click "NetBeansBlueJ-5.0Beta-060510-macosx.tar.gz" to Download for the MAC OS .
Click here for further information on this IDE and others.
Getting Started: writing and running programs:
For a new project (and getting started):
Then to start programming:
Adding line numbers to your screen:
Writing programs:
Debugging:
Note: It is cumbersome to try to debug through a JOptionPane statement; it is easier to comment out the JOptionPane statement and follow it with an initialization, such
/* String sentence=JOptionPane.showInputDialog(null, "Type in a sentence",
"Input Sentence Window", JOptionPane.QUESTION_MESSAGE); */String sentence = "The caT is AsleEp." ;