What should go in the Main-Class section of the manifest? The main class is in code/both/ BUT the package is just both. I get slightly different output depending on what I specify as the Main-Class: With code.both.RunApp I get a NoClassDefFoundError: code/both/RunApp (Wrong name: both/RunApp)with a stacktrace.
Charlie, There are 2 jar files for the assignment. 1. runme.jar file - this is supposed to contain only the class files. As Denis mentioned, this is supposed to contain only, suncertify directory as the root package. 2. The complete jar file consisting the runme.jar file, the code directory(source code), version.txt, db2x2.db file, docs directory etc. This has a different name, something like SCJD_YourPrometricID.jar. Sorry, I cannot remember what exactly it is at this moment.May be the others can help you on this.After completion of the assignment, we upload this jar file for evaluation.
The examiner is expected to unjar the second jar file into a directory and then use runme.jar file to run/test our application.
runme.jar is expected to contain a maninfest file with the Main-Class: entry. In ur case, I guess it could be
RunApp is the name of the class that has the main method and both is the package in which RunApp class is defined.
Remember code directory contains the source files and is not used to run your application.
if suncertify is not your root package(it should be for the assignment!), then create the runme.jar file with whatever root package/directory you have.
jar cmf Manifest.mf runme.jar both
(if both is ur root package containing the other subpackages and classes)
You can test your application with the runme.jar file. Ignore the second jar file for the time being, you can do it later when you are ready to upload the assignment.
BTW, your package names are different, which assignment are you working on?
Joined: Feb 26, 2004
I did misread some stuff, so I'll try again. I didn't have a base directory, I'm getting Eclipse to move things around now though.
Joined: Feb 26, 2004
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com