• Post Reply Bookmark Topic Watch Topic
  • New Topic

Put multiple jar files within a to be newly created JAR File  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I know i can set my classpath explicitly but in my case where I 'd like to make it run on several test servers separately, I happened to be thinking the best solution be create a single jar from my project-classes, that contains all the other referenced jar files and handles the referencing of them automatically.

The Jar utility from Sun or ANT Jar task do not seem to be handling this...
any idea will be highly appreciated,
...
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
extract all the jars before repacking.
Jars inside a jar don't work, unless you use a different classloader.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!