I am using JDK 1.5 and IntelZ 8.1.4 on Window XP, and for making my pocket and making ant I am using . The problem is, the .jar package file does not have the main-class and path information in the MANIFEST.MF MANIFEST. Here's information about MF:
manifest-version: 1.0
Ant-version: Apache ant 1.7.1
Created-: 1.5. 0_22-B3 (Sun Microsystems Inc.)
Here is my project's iOS file, the main square in it is:
& lt; Configuration default = "true" type = "application" factory name = "application" enabled = "wrong" merge = "wrong" sample_coverage = "true" runner = "emma" & gt; & Lt; Option name = "MAIN_CLASS_NAME" value = "cms.client.gui.CMT" /> & Lt; Option name = "VM_PARAMETERS" value = "" /> & Lt; Option name = "PROGRAM_PARAMETERS" value = "" /> & Lt; Option name = "WORKING_DIRECTORY" value = "file: // $ PROJECT_DIR $" /> & Lt; Option name = "ALTERNATIVE_JRE_PATH_ENABLED" value = "wrong" /> & Lt; Option name = "ALTERNATIVE_JRE_PATH" value = "" /> & Lt; Option name = "ENABLE_SWING_INSPECTOR" value = "wrong" /> & Lt; Option name = "ENV_VARIABLES" /> & Lt; Option name = "PASS_PARENT_ENVS" value = "true" /> & Lt; Module name = "" /> & Lt; Envs / & gt; & Lt; Method & gt; & Lt; Option name = "make" value = "true" /> & Lt; / Method & gt; & Lt; / Configuration & gt;
Any comments?
If you are using ant you need to update your target jar:
& lt; Jar destfile = "dist / HelloWorld.jar" basedir = "build / classes" & gt; & Lt; Appearance & gt; & Lt; Attribute name = "main category" value = "com.mycompany.HelloWorld" /> & Lt; / Reveal & gt; & Lt; / Jar & gt;
Comments
Post a Comment