![]() With all these entries in the manifest I can specify java -jar db_field_cleaner.jar and all the other jars are inlined into the classpath : Manifest-Version: 1.0 You need to specify all the other jars that are required in your classpath in the manifest file before you can execute java -jar my-test.jar, here is a copy of one of my manifest files. So move your JarRunner into a package, and declare it appropriately in the element. If your main class is in the default package (the unnamed package), I am not sure it can be referenced by the loader (see this SO question) The needs to specify the full path (packages) of the MainClass, not just MainClass. or may not define adequately the MainClass within your 'my_jar.jar'. ![]() The best solution when you have a jar is to try to include the required jars into the manifest declaration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |