Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classpath / Archive : applet jar

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the post below me in this forum, I have same problem, I work out a little bit, but I am not sure.

we should put the jar library in the archive, for example

you see, the library file, apache-commons-lang.jar should stay with your coding jar (social.jar) in the same directory. This way works.

But my questions, if my application need 20 jar library fils, I should put one by one into "archive"? Is it possible , like "/lib/*.jar" ? Or we has the other ways out ?


Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use wildcards. If you don't want to have a long list of files, you can use jar to combine them in a single file.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

But it doesn't work. I use ant to build jar, and put it into archive, doesn't work. Any idea ?

THanks

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't jar jar files, and have them work in a classpath. You have to un-jar the jar files into individual class files, combine all of them into one directory, and then jar that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic