• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Eclipse build process and including jars in lib; some confusion  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been working with a lot of builds lately, both on Tomcat and Eclipse.
ant was fairly intuitive, but even then you had to do futz around with install and Tomcat manager, or do an xcopy of the build/ into the webapp root.

So for eclipse, I'm not clear
where would a lib/ and jar's be put ? ( I realize, in theory, an external jar can be linked in from anywhere, but I haven't had luck with that )

The documentation seems really pretty weak, as far as how the eclipse build process works.
My guess is that WebContent will hold WEB-INF/ web.xml and lib/ also, if you created it, and WebContent will never be moved.
build/ ends up with just the compiled java (.class files)

Quite related is how to include .jars in the build path.
I've seen quite a few posts about including .jars and the issues encountered but no definitive method on how to do it successfully.
I'm guessing, if you exported to a .war, that would include .jars whether internal or external, so portability would be maintained.
My problem is: external doesn't seem to work ( ClassNotFoundException ) so I guess I'll guess at the structure required for internal.

clarification and suggestions welcome !

 
Rj Kattke
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One other odd thing:
trying to include a local jar, eclipse would not show the dir's under WEB-INF/ so I could not navigate to lib/ and select the jar to include.

seemed really strange; perhaps I'm missing something; hopefully someone more knowledgeable can fill me in. thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!