JDK consists of a set of separate programs, each of which is invoked from a command line. Besides JDK, there are other Java development packages on the market today. The major development tools are:
These tools provide an integrated development environment (IDE) for rapidly developing Java programs.
Java source code is always stored in files with the extension .java. Once you have created the source code for a program and saved it in a .java file, you need to compile the source code. Using the compiler that comes with the JDK, you would do this with the following command: javac MyProgram.java » javac is the name of the Java compiler. » MyProgram.java is the name of the program source file.My First Applet
» The code between the <APPLET> and </APPLET> tags specify that the byte codes for the applet are contained in the file MyProgram.class which is specified as the value for the CODE attribute.
If you save this HTML page specification in the file MyProgram.html in the same directory as the Java applet code, you can run the applet using appletviewer from the JDK with the command: appletviewer MyProgram.html
You can also use your Java-enabled Web browser to view your applet in a Web page.