Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Creation of .jar file of a Dynamic Web Project when building the project
Creation of .jar file of a Dynamic Web Project when building the project [message #664367] Fri, 08 April 2011 14:58 Go to next message
Mathew Jacob is currently offline Mathew Jacob
Messages: 1
Registered: April 2011
Junior Member
When building a dynamic web project, it automatically compiles the java files and keeps it in build\classes directory. Now when i publish this in tomcat from server tab it correctly copies the class files to WEB-INF\classes directory.

But instead of copying the class files to WEB-INF\classes directory, I want this project to create a jar file and place it in WEB-INF\lib directory. Can anyone help me how this is achieved. I hope I am asking in the right forum.
Re: Creation of .jar file of a Dynamic Web Project when building the project [message #664404 is a reply to message #664367] Fri, 08 April 2011 16:26 Go to previous message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
This is the correct forum.

Create a Java EE Utility project and move your java source code there. Then add this project to your web project's build path. Then go to web project's project properties. On the deployment assembly page add classpath entry to the assembly. The default location will be WEB-INF/lib.

- Konstantin
Previous Topic:Adding deployment info to J2EE Preview server: realms/users and env-entry
Next Topic:Creating Eclipse Dynamic Web Project from Maven
Goto Forum:
  


Current Time: Sun Sep 21 12:19:20 GMT 2014

Powered by FUDForum. Page generated in 0.02210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software