one - jar Unable to locate com.simontuffs.onejar.Boot in the java.class.path:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaya3
    New Member
    • Aug 2007
    • 184

    one - jar Unable to locate com.simontuffs.onejar.Boot in the java.class.path:

    Hi All,
    In my project, am creating the application jar using one-jar. And am able to run the jar with java -jar Example.jar and its working fine. When i try to run from jnlp its throwing the below Exception. i dont have any clue.
    Code:
    java.lang.IllegalArgumentException: Unable to locate com.simontuffs.onejar.Boot in the java.class.path: consider using -Done-jar.jar.path to specify the one-jar filename.
    	at com.simontuffs.onejar.Boot.getMyJarPath(Boot.java:400)
    	at com.simontuffs.onejar.Boot.run(Boot.java:212)
    	at com.simontuffs.onejar.Boot.main(Boot.java:159)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    	at com.sun.javaws.Launcher.executeMainClass(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)
    Manifest File:

    Manifest-Version: 1.0
    Class-Path: one-jar-boot.jar main/* lib/*
    Created-By: Fat Jar/One-JAR Eclipse Plug-In
    Main-Class: com.simontuffs. onejar.Boot
    One-Jar-Expand: test

    JNLP File:

    Code:
    <?xml version="1.0" encoding="utf-8"?> 
    <!-- JNLP File for Test Application --> 
    <jnlp spec="1.0+" 
    codebase="file:///c:/jdc/jnlp/" 
    href="HelloWorld.jnlp"> 
    <information> 
    <title>Test QA</title> 
    <vendor>Test of Vendor</vendor> 
    <homepage href="/jdc"/> 
    <description>Test application </description> 
    <description kind="short">1.6.0_01 Java Release.</description> 
    <icon href="homeResp.PNG"/> 
    <offline-allowed/> 
    <shortcut online="true">
    <desktop/> 
    <menu submenu="TEST"/>
    </shortcut>
    </information> 
    <security> 
    <all-permissions/> 
    </security> 
    <resources> 
    <j2se version="1.4+"/> 
    <jar href="/jdc/jnlp/Example.jar"/> 
    </resources> 
    <application-desc/>
    </jnlp>
    Please do needfull. Thanks in Advance.
Working...