Share on Google+Share on Google+

Compiling and testing the application

In this application we will compile and deploy the application on tomcat.

Compiling and testing the application


In this application we will compile and deploy the application on tomcat.

You can download the full running code of the application from here.

Unzip the file to tomcat webapps directory and to compile the project go to the project\WEB-INF\src of your poject and then use ant tool to compile the application. Here is the out put of the process.




C:\Documents and Settings\Administrator>cd C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src

Buildfile: build.xml

[delete] Deleting directory C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\classes
[mkdir] Created dir: C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\classes


[copy] Copying 2 files to C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src\classes

[javac] Compiling 18 source files to C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src\classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[jar] Building jar: C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\lib\project.jar



Total time: 9 seconds

Now start the tomcat and type http://localhost:8080/project in your browser. You browser should show the following home page:

Now you can test the full application by selection the different links.

Form more information on deploying the application you also view our earlier section Integrate Struts, Hibernate and Spring.  


Posted on: February 11, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Compiling and testing the application   View All Comments

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image