aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes ant conf file - where to add external libs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant conf file - where to add external libs" Watch "ant conf file - where to add external libs" New topic
Author

ant conf file - where to add external libs

Abhishek Kaushik
Greenhorn

Joined: Mar 03, 2010
Posts: 14
Hi friends,

i am trying to deploy on web app in tomcat container, i have one third party jar api, which is working perfectly when run from eclipse but when i try to run the build using Ant tool it is not able to find that jar library which is referenced in one of class file. Needless to say I have added that library into my Any class path

Please help
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure exactly what you're asking, or if you're asking two separate questions.

For the build, make sure the jar is on the compilation classpath. For the web app, make sure the jar is packaged in WEB-INF/lib.
Abhishek Kaushik
Greenhorn

Joined: Mar 03, 2010
Posts: 14
David Newton wrote:I'm not sure exactly what you're asking, or if you're asking two separate questions.

For the build, make sure the jar is on the compilation classpath. For the web app, make sure the jar is packaged in WEB-INF/lib.


Thanks David,

i will need your help to resolve this error.

I have added that file into class path
Windows -> Ant -> runtime -> global entries

Further they are put inside WEB-INF/lib folder too

there is more information on the background of this app that is this is not a something from scratch we are using one vendors API (Thinkmap visualizer) to build our app, which is some what J2EE standard. This application creates a thinkmap project wizard in eclipse "New project". so i have a special directory structure just like other web apps, this wizard also creates few xml files that configures database connections and other settings how to display the data in the applet. most of the time all customization can be achieved by editing those xml files but in some cases we have to add our own java classes there, one if java class i added is using yet another external jar library, which is not getting into compilation path.
Another interesting thing is this wizard has its own way to create deployable package, it has one packager library that does all jobs with Ant. this packager is neglecting my external libs

Sorry to confuse you more, please ask for more details if you need
Abhishek
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I have no idea how to use their "packager".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant conf file - where to add external libs