Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant conf file - where to add external libs

 
Abhishek Kaushik
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea how to use their "packager".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic