edit this page - page history - about editing

NoClassDefFoundError when running JUnit Plug-in Tests with JARs

Eclipse

If you are running a JUnit plug-in test within an Eclipse environment that requires .jar libraries, then you can't just add them to the build path through right click > add to build path.

You have to add them to the plug-in classpath by editing MANIFEST.MF. Otherwise the Eclipse classloader won't be able to find them (it ignores the Eclipse classpath when running a new environment).
Categories: Eclipse | Java
edit this page - what links to here? - page history - top
Last edited by jevon jevon 102 months ago