In order to develop with Java, you have to configure environment that can be developed in Java first. To configure the Java development environment, you need to install the Java platform provided by Oracle’s Web site. Java was originally developed by Sun Microsystems, but since Oracle acquired Sun Microsystems, Oracle has provided the relevant development environment and is divided into several configurations to enable applications to be developed in various heterogeneous computing environments.
First, access the Oracle website to download the platform for the Java development environment. When you enter the menu called java, you will see a menu called Java EE and Java SE.
Java EE and Java SE are both platforms for Java development. Java EE refers to Java Enterprise Edition and is used when developing applications for business servers. Another component, Java SE, is Java Standard Edition, which is used to develop common desktop applications.
If you want to develop common desktop applications, you can install Java SE. After installing Java SE, install the Java Development Kit (JDK). You can download the appropriate JDK from the Oracle home page.
Once you have installed the JDK, you can start development with Java. If you only want to run Java programs, you can install Java Runtime Environment (JRE). In other words, you can choose to install the Java Development Kit (JDK), Java Runtime Environment (JRE), and Java Virtual Machine (JVM) depending on your use of Java.
If you have not yet configured a basic environment for Java development, please refer to the previous post.
The JDK installation includes the following tools:
- Java Translator: javac
- Java interpreter: java
- Applet Launcher: appletviewer
- Java Debugger: jdb
- c Header File and Stub File Generator: javah
- Java Document Generator: javadoc
- Java compression tool: jar
The integrated development environment (IDE) for Java development can be obtained by downloading a version that includes NetBeans or by using Eclipse.
Types of Java programs
If you have already installed the JDK and set up your environment variables by referring to the previous post, you can develop your application in Java. At this time, a Java application can be divided into a Java application and a Java applet program depending on the local execution environment.
A Java application is a generic application, such as a C or C ++ program. A Java applet program is a program that runs in a browser or an applet viewer. Applets are often used for small and simple applications, but most modern browsers do not support Java applets.