<taglib:tutorial lesson="compiling"/>

This part of the tutorial goes through the procedure of compiling java source files into class files with Suns JAVAC command.

1 Compiling

    This part of the tutorial goes through the procedure of compiling java source files into class files with Suns JAVAC command.

    It is strongly suggested that you use a IDE when developing Java applications. Most IDEs has compilation utilities that are simple and reliable.

2 Compiling a Tag

    1. With a command shell of your choice, position yourself in the /orion/ directory.

    2. Issue the following command:


      javac -classpath orion.jar applications/taglib-tutorial/taglib-tutorial-web/WEB-INF/classes/com/acme/tag/HelloTag.java
      Listing 1: Compilation sample.

      Substitute the path and source file name to match your environment and the task at hand. Depending upon what you are compiling, you might have to add additional JAR files to the classpath statement

    If everything goes fine, you should now have a compiled java class in the directory you specified above.

Copyright © 2005 IronFlare AB