• Post Reply Bookmark Topic Watch Topic
  • New Topic

classpath - jar of jars issue  RSS feed

 
Srinivas Ramgopal
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to create a jar of 60 jars that need to be used in the classpath and I used the following:



The manifest file content looks like below but has reference to 60 jars:




The jar command fails saying 'line too long'

So my questions are:

1) How to avoid this error since I also tried having only 3 jars per line in the manifest file.

2) Also is there a better way to include a jar/zip of jars in a classpath.

3) Is there a javav utlity that creates a jar of jars and updating the manifest file?

Thanks in advance for your time and effort.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16059
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally, putting JAR files inside JAR files is not going to work - Java will not be able to read classes from the nested JAR files.

Maybe this utility is handy for what you want to do:
http://one-jar.sourceforge.net/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!