By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,880 Members | 659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,880 IT Pros & Developers. It's quick & easy.

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

P: 184
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.
Expand|Select|Wrap|Line Numbers
  1. 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.
  2.     at com.simontuffs.onejar.Boot.getMyJarPath(
  3.     at
  4.     at com.simontuffs.onejar.Boot.main(
  5.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6.     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  7.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  8.     at java.lang.reflect.Method.invoke(Unknown Source)
  9.     at com.sun.javaws.Launcher.executeApplication(Unknown Source)
  10.     at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
  11.     at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
  12.     at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
  13.     at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
  14.     at Source)
  15.     at 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:

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?> 
  2. <!-- JNLP File for Test Application --> 
  3. <jnlp spec="1.0+" 
  4. codebase="file:///c:/jdc/jnlp/" 
  5. href="HelloWorld.jnlp"> 
  6. <information> 
  7. <title>Test QA</title> 
  8. <vendor>Test of Vendor</vendor> 
  9. <homepage href="/jdc"/> 
  10. <description>Test application </description> 
  11. <description kind="short">1.6.0_01 Java Release.</description> 
  12. <icon href="homeResp.PNG"/> 
  13. <offline-allowed/> 
  14. <shortcut online="true">
  15. <desktop/> 
  16. <menu submenu="TEST"/>
  17. </shortcut>
  18. </information> 
  19. <security> 
  20. <all-permissions/> 
  21. </security> 
  22. <resources> 
  23. <j2se version="1.4+"/> 
  24. <jar href="/jdc/jnlp/Example.jar"/> 
  25. </resources> 
  26. <application-desc/>
  27. </jnlp> 
Please do needfull. Thanks in Advance.
Jun 9 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.