Skip to main content



      Home
Home » Language IDEs » ServerTools (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 10:58 Go to next message
Eclipse UserFriend
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 12:26 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 14:04:56 EDT 2025

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

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

Back to the top