|
|
|
|
(Because it was developed by Professor Cheung)
For clarity, I have delete all files and folders from my cs170 directory.
The "TestProj" will be contained inside the /home/cheung/cs170 directory.
In other words, the absolute path of the project directory is:
|
public class Hello { public static void main(String[] args) { System.out.println("Hello Class"); System.out.println(" How is everyone doing so far ?"); } } |
You don't need to understand this program right now; it will be explained later in the course.
|
UNIX prompt>> bluej & |
This will run BlueJ as a detached process
You will first see an announcement window:
When it's ready, you will see the main window:
When you create a new project, BlueJ will also create a new directory for you.
|
public class Hello { public static void main(String[] args) { System.out.println("Hello Class"); System.out.println(" How is everyone doing so far ?"); } } |
Notice that the program is called class Hello
This will be important in the creation procedure.
|
The icon named Hello in BlueJ represents the program file Hello.java inside the TestProj directory.
|
The new window contains the content of the file Hello.java
(To verify, use "cat Hello.java" in a terminal window)
BlueJ has already inserted a few things in the file Hello.java to help you start writing a Java program
|
|
|
|
|
|
|
|
That is because compilers (an application that translates a program written in a high level language into machine code) always report an error along with the location (as a line number) in the file.
|
|
|
Left click on the Next button to find the subsequent matching pattern
|
|
|
|
|
You have learned saving your work above !!!
|