As one of the most popular programming languages in the world, Java forms the building blocks for communicating instructions to many machines.

The general purpose high-level language which was developed by Sun Microsystems, now owned by Oracle, is relatively simple to get started with.

Getting started with the programming language a user will require three tools, a Java compiler, a Java Virtual Machine, and the Java API. These can be downloaded from the Oracle site, or by using tools that from a commercial product such as IBM WebSphere Studio Application Developer.

Bundles that include various tools can be downloaded such as the Java Runtime Environment (JRE), and the Software Development Kit (SDK).

The SDK bundle includes all three aforementioned tools and will allow you to create and run Java programs. The JRE bundle includes a Java Virtual Machine and the API, this bundle allows users to run existing Java programs but not create them.

Java

To write a computer program a text editor will be required, which is similar to Microsoft Word but has no formatting.

Many programmers use Integrated Development Environments (IDEs) to start writing in Java, these are programs such as Netbeans, or Eclipse, although these are not 100% necessary.

To create the first application a user will need to create a source file which contains code that is written in the Java language, compile the source file into a .class file and then run the program.

Numerous tutorials online are available to help speed through the process. Users can simply save a file called HelloWorldApp.java then bring up a command window in order to compile the source file. Enter in the directory where the source file is located and press enter.

Once the source file is located the following command can be entered; javac HelloWorldApp.java. The compiler that you have downloaded will have created a bytecode file, HelloWorld.App.class.

Now that a .class file has been created then the program can be run.

To check that it works, in the same directory type: java -cp . HelloWorldApp, the response should be: C:myapplication>java -cp . HelloWorldApp – Hello World! – C:myapplication>.

First java