My MANIFEST.MF in my application jar contains the following line:
Class-Path: other.jar
My directoy contains the followign files at the same level:
- myApp.jar
- other.jar
I run my application using
java -jar myApp.jar
and get a NoClassDefFoundError for a class which is in other.jar
What am i missing please?
Turns out the issue was outside of the manifest file. I had an autogenerated index.list file next to it which blocks classpath from being read.