9.5. Building Java Applications

A Java application is a compiled Java program that can be executed using a Java virtual machine. There are three basic steps to create a Java application. These steps are:

1.
Create source code.
2.
Compile it.
3.
Run it using the virtual machine.

Let's see how you can go through these steps.

9.5.1. Creating Source Code File

Like any other programming language, Java source code files are created using an editor. These source code files contain Java instructions. The simplest source code file contains an instruction to print the message “Hello World”, similar to your first C program. Please note that Java examples in this chapter are just to demonstrate how to use development tools.

The program that prints the “Hello ...

Get Linux Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.