1.
Executable applet is nothing but the .class file of the applet, which is obtained by compiling the source code of the applet. Compiling an applet is exactly the same as compiling an application. Therefore, we can use the Java compiler to compile the applet.
Assume that we have created a file called HelloJava.java for our applet. Here are the steps required for compiling the HelloJava applet.
1. Move to the directory containing the source code and type the following command: javac HelloJava.java
2. The compiled output file called HelloJava.class is placed in the same directory as the source.
3. If any error message is received, then we must check for errors, correct them and compile the applet again.
0 comments:
Post a Comment