Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant messing up tomcat

 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i run my ant script it seems to mess up tomcats environment variables

it stops being able to find all the jars, on this box the ALL jars are stored in usr/share/java and not tomcat/common/lib.

is this even possible?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
/usr/share/java is where (at least for RedHat/Fedora-style distros), the OS-supplied jars reside. Things like jdbc drivers and stuff like that. You really don't want to dump tomcat's internal jars in there. For one thing, they're not stuff you want to - ahem - "share".

I have been known to go the other direction, however, and place a softlink(s) in TOMCAT_HOME/lib to one or more JDBC driver jars in /usr/share/java. Tomcat's OK with that.
 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, i have gone for links (as i am just working on the customers box and don't feel comfortable making changes that big)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic