|
Hm, I know this is supposed to be easy, but I don't get it: how do I link an external library to the program?I mean, I use a number of libraries (located in the lib/ folder). When I import them in Eclipse it works fine (and I do mark to export these libraries in the project properties), however when I export the project as an executable jar, it won't start from java -jar smth.jar because of "Exception in thread "main" java.lang.NoClassDefFoundError:". I have tried specifing the location in the Manifest file, but the problem persists. What do I do wrong?
-- my manifest -- Manifest-Version: 1.0 Main-Class: MainExecutable Class-Path: lib/lib1.jar lib/lib2.jar |