Skip to content

Instantly share code, notes, and snippets.

@chrispauley
Created October 18, 2018 13:57
Show Gist options
  • Save chrispauley/0ad98b5df114521d7878b433e608734a to your computer and use it in GitHub Desktop.
Save chrispauley/0ad98b5df114521d7878b433e608734a to your computer and use it in GitHub Desktop.
Create an index of classes in a lib directory
[Stackoverflow attibution](https://stackoverflow.com/questions/15601469/jar-not-loaded-see-servlet-spec-2-3-section-9-7-2-offending-class-javax-serv)
You may find the following windows command line useful in tracking down the offending jar file.
it creates an index of all the class files in all the jars in the folder. Execute from within the lib folder of your deployed app,
then search the index.txt file for the offending class.
for /r %X in (*.jar) do (echo %X & jar -tf %X) >> index.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment