| Author |
JNLP : Launch File Error - Could not find main-class
|
Dhana Sen
Ranch Hand
Joined: Mar 05, 2006
Posts: 33
|
|
Hi All, am unable find the file.. (Could not find main-class) am using J2se 1.4 and Jboss 4.0 i have created all my class file and make it as JMSconsumer.jar then i create JMSClient.war ==>MANIFEST.MF web.xml , all .Jar files and JmsClient.JNLP while am creating .war(JMSClient.war) file I have mention my Main method class in side Manifest.mf file as Main-class: MYMainMethod.Class and Class-Path: ./JMSconsumer.jar (There is no Package for my Class) MANIFEST.MF **************** Manifest-Version: 1.0 Created-By: 1.4.2_04 (Sun Microsystems Inc.) Mani-Class: TafConsumer.class Class-Path: ./JMSconsumer.jar General Tab ************** An error occurred while launching/running the application. Title: My JMS Consumer Vendor: PSI Data System Category: Launch File Error Could not find main-class TafConsumer in http://172.25.18.54:8080/JMSClient/JMSconsumer.jar Lanch File Tab ***************** <?xml version="1.0" encoding="UTF-8"?> <jnlp codebase="http://172.25.18.54:8080/JMSClient" href="JmsClient.jnlp"> <information> <title>My JMS Consumer</title> <vendor>PSI Data System</vendor> <icon href="icon.png"/> <icon href="splash.png" kind="splash"/> </information> <security> <j2ee-application-client-permissions/> </security> <resources> <j2se version="1.4+"/> <jar href="JMSconsumer.jar" main="true" download="eager"/> </resources> <application-desc main-class="TafConsumer"/> </jnlp> Exception Tab **************** JNLPException[category: Launch File Error : Exception: null : LaunchDesc: <jnlp spec="1.0+" codebase="http://172.25.18.54:8080/JMSClient/" href="http://172.25.18.54:8080/JMSClient/JmsClient.jnlp"> <information> <title>My JMS Consumer</title> <vendor>PSI Data System</vendor> <homepage href="null"/> <description></description> <description kind="short"></description> <description kind="one-line"></description> <description kind="tooltip"></description> <icon href="http://172.25.18.54:8080/JMSClient/icon.png" kind="default"/> <icon href="http://172.25.18.54:8080/JMSClient/splash.png" kind="splash"/> </information> <security> <j2ee-application-client-permissions/> </security> <resources> <j2se initial-heap-size="-1" max-heap-size="-1" version="1.4+"/> <jar href="http://172.25.18.54:8080/JMSClient/JMSconsumer.jar" download="eager" main="true"/> </resources> <application-desc main-class="TafConsumer"/> </jnlp> ] at com.sun.javaws.LaunchDownload.getMainClassName(Unknown Source)at com.sun.javaws.Launcher.continueLaunch(Unknown Source)at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) by dhana
|
 |
Dhana Sen
Ranch Hand
Joined: Mar 05, 2006
Posts: 33
|
|
MANIFEST.MF **************** Manifest-Version: 1.0 Created-By: 1.4.2_04 (Sun Microsystems Inc.) Mani-Class: TafConsumer.class Class-Path: ./JMSconsumer.jar i have missed class path .. all my jar file to run my application. Class-Path: Jboss-j2ee.jar etc... thanks dhana
|
 |
 |
|
|
subject: JNLP : Launch File Error - Could not find main-class
|
|
|