1 / 17

Java Programming: Getting Started

Java Programming: Getting Started. Marlene Galea. What you will need. The JDK (Java Development Kit) An IDE (Integrated Development Environment) Different IDEs include: JCreator NetBeans BlueJ . We will be using BlueJ. What is the JDK?. Java Development Kit ( JDK ). Compiler. Debugger.

michon
Download Presentation

Java Programming: Getting Started

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. Java Programming:Getting Started Marlene Galea

  2. What you will need • The JDK (Java Development Kit) • An IDE (Integrated Development Environment) • Different IDEs include: • JCreator • NetBeans • BlueJ We will be using BlueJ

  3. What is the JDK? Java Development Kit (JDK) Compiler Debugger Other tools Teaching OOP and JAVA Java Runtime Environment (JRE) Java platform core classes Java Virtual Machine (JVM) Supporting Java platform libraries Integrated Development Environment (IDE) Marlene Galea – HoD Computing

  4. What is the JDK? Java Development Kit (JDK) A JDK includes the JRE, compiler, debugger and other tools for developing applets and applications. Compiler Debugger Other tools Teaching OOP and JAVA Java Runtime Environment (JRE) The JRE is what you get when you download Java software. The JRE is the runtime portion of Java software. Java platform core classes Java Virtual Machine (JVM) The JVM is software that converts the Java intermediate language (bytecode) into machine language and executes it. Supporting Java platform libraries Integrated Development Environment (IDE) An IDE e.g. NetBeans is used to edit, compile and debug Java code. Marlene Galea – HoD Computing

  5. Getting an IDE (BlueJ) • Go to http://www.bluej.org/ and download BlueJ • You may use the JDK and BlueJ combined installer (or you may download the JDKseparately – see here)

  6. Using BlueJ Creating and running your application

  7. Starting a new project • Select ‘New Project’ from the ‘Project’ Menu

  8. Create your Project • Choose where to save your new folder. • Hit the ‘Create’ button.

  9. Starting a New Class • Select ‘New Class’ • Name your class and press ‘OK’

  10. Coding your class • Double-click your class to write your code

  11. Writing and Compiling your class • Once you’ve written some code, hit ‘Compile’.

  12. Running your program • Right-click on the class holding the method ‘main’. • Select and click method ‘main’ to run.

  13. Creating an executable file • Select ‘Create JAR File’ from the Project Menu.

  14. JDK Download If you want to ONLY download the JDK, follow the following steps.

  15. Downloading the JDK • Click this link to go to the Oracle page from where you can download the JDK • Select ‘Download Java’ as shown:

  16. Downloading the JDK [...cntd] • Accept Licence Agreement • Select the product for your system

  17. Happy Coding!

More Related