How to Build Java Applets in Binary

Code written in the Java programming language can following several different programming conventions, depending on where it is expected to execute. For example, a Java application can execute standalone, but a Java applet runs in the context of a (client-side) Web browser. Source code in Java needs to be built into binary Java bytecodes to become executable. You can use the built-in Java tools to build your Java source code into binary class files on your computer.

Instructions

    • 1

      Click "Start" and type "run" into the search box.

    • 2

      Click on the "Run" link. Type "cmd" into the text field and press "Enter." A new Command window will open.

    • 3

      Compile your Java applet into bytecodes by typing the following line into the Command window:

      javac myApplet.java

      Replace "myApplet.java" by the name of the file containing your source code. Press "Enter." The "javac" compiler will generate one or more ".class" files as the result of the build process.

Related Searches:

References

Comments

Related Ads

Featured