CHAPTER 2

Creating an Application in Java

What are the requirements for creating a simple Java application? To create a simple Java application, we will need to use a text editor for entering the Java source code, and we would also need to have the Java Development Kit (JDK), which includes the Java Runtime Environment (JRE), installed on our machine. The JDK would be required for compiling the Java source code and JRE would be required to execute the compiled Java application. We can use any editor with which we are comfortable as long as it can create and save plain text files. The code included here is created using the gedit editor on the Open Solaris platform.

2.1 INSTALLING JDK

There is a JDK version available for almost all the platforms. ...

Get The class of Java 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.