This post originated from an RSS feed registered with Java Buzz
by Mike Kaufman.
Original Post: Executable Jar Class-Path and INDEX.LST
Feed Title: Closing Braces
Feed URL: https://closingbraces.net/feed/
Feed Description: After-hours notes and opinions on Java and system development.
If an executable jar includes a META-INF/INDEX.LST file, classes from other jars won't be found on the classpath unless they are listed by the INDEX.LST file, even if the jars are specified in the manifest's "Class-Path" entry. Mistakes with this can be frustrating to diagnose. If you're using Ant, its "jar" task lets you control whether or not an INDEX.LST file is built into the jar or not, and if so which jars should have their content listed in it.