If you want to pack JARs inside JARs, you can use something that does classloader magic like One-JAR, but it's usually good to avoid things like that unless you really need them. Alternatively, you could look at something that unpacks jars and reassembles them into a new JAR, like the Maven Assembly or Shade plugins.
But usually moving a few extra JARs isn't too difficult. Michael Della Bitta ------------------------------------------------ Appinions 18 East 41st Street, 2nd Floor New York, NY 10017-6271 www.appinions.com Where Influence Isn’t a Game On Tue, Apr 23, 2013 at 9:37 PM, Xi Shen <davidshe...@gmail.com> wrote: > Hi, > > I developed a data import handler, it has some dependent libraries. I > deployed them in a parallel folder with my JAR and included the path in > solrconfig.xml. It works fine. But I am thinking maybe I can pack those JAR > libs within my JAR, but I got NoClassDefFoundError exception when executing > my DIH. > > Is it possible Solr can load JAR libs packed in my JAR? How can I do that. > > > -- > Regards, > David Shen > > http://about.me/davidshen > https://twitter.com/#!/davidshen84