1 / 11

Compiling and running Java programs with BlueJ

Compiling and running Java programs with BlueJ. Successfully compiled files program files in BlueJ. You can tell from the shade of a program icon in BlueJ whether the program has been successfully compiled (translated). Successfully compiled files program files in BlueJ (cont.).

dunne
Download Presentation

Compiling and running Java programs with BlueJ

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Compiling and running Java programs with BlueJ

  2. Successfully compiled files program files in BlueJ • You can tell from the shade of a program icon in BlueJ whether the program has been successfully compiled (translated)

  3. Successfully compiled files program files in BlueJ (cont.) • Icon shades: • Shaded: this program has notbeen compiled successfully

  4. Successfully compiled files program files in BlueJ (cont.) • Unshaded: this program has been compiled successfully

  5. Compiling (translating) your Java program with BlueJ • You can compile (= translate) a Java program in BlueJ in 2 different ways:

  6. Compiling (translating) your Java program with BlueJ (cont.) • From BlueJ'seditor window: • Left click on the Compile button

  7. Compiling (translating) your Java program with BlueJ (cont.) • 2. From BlueJ'smain window: • Right click on the program file and then left click of the Compile menu button

  8. Compiling (translating) your Java program with BlueJ (cont.) • When the program is compiled successfully, the icon in the main window (associated with the program) become unshaded:

  9. Running a (successfully compiled) Java program with BlueJ • Execute a Java program in BlueJ: • Right click on the program file in BlueJ's main window, and then • Left click on the void main(String[]args) tab:

  10. Running a (successfully compiled) Java program with BlueJ (cont.) • 3. A window will pop up: • Left click on OK to run the program.

  11. Running a (successfully compiled) Java program with BlueJ (cont.) Result: the output of the program is shown in BlueJ's "terminal" window:

More Related