473,432 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,432 software developers and data experts.

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

184 100+
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(Boot.java:400)
  3.     at com.simontuffs.onejar.Boot.run(Boot.java:212)
  4.     at com.simontuffs.onejar.Boot.main(Boot.java:159)
  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 com.sun.javaws.Launcher.run(Unknown Source)
  15.     at java.lang.Thread.run(Unknown Source)
  16.  
  17.  
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> 
  28.  
Please do needfull. Thanks in Advance.
Jun 9 '10 #1
0 1904

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

Similar topics

8
by: Fu Bo Xia | last post by:
the java.lang.Object.forName method takes a java class name and returns a Class object associated with that class. eg. Class myClass = Object.forName("java.lang.String"); by if i only know the...
0
by: Hal Vaughan | last post by:
While experimenting with System.getProperty() and System.setProperty(), I've noticed that I can change properties, but those changes do not last once the JVM they're modified in terminates. I...
1
by: Dan | last post by:
I wnat to see in browser an status from an device connected on rs232 port The java class for read from serial port is: //Serial.java import java.io.*; import java.util.*; import...
4
by: angel | last post by:
A java runtime environment includes jvm and java class (for example classes.zip in sun jre). Of course jython need jvm,but does it need java class. Thanx
4
by: simon | last post by:
hello, may have a need shortly to call a java class from a vb.net web app. basically the java class would serve as an email creation/sending function. i realize this all could be done in .net,...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: Brad Baker | last post by:
Our developers are calling a java application from an ASP/ASP.net page. Excerpt as follows: ---- Dim a_jvmargs(1) a_jvmargs(0)= "-Djava.class.path=C:\Program...
1
by: dhwanimathur | last post by:
hi all i am trying to work in jsp's for that i am using tomcat server and dreamweaver IDE i have create a jsp now i want to call a class like calculate.java which i have designed in Eclipse...
1
by: okonita | last post by:
Hello all, I have a Java problem that I hope can be answered here. Very new to DB2 UDB and UDF (we are on DB2v9.5, Linux and Windows), I have managed to get the UDF registered but having problem...
2
by: whitep8 | last post by:
Hi All, The code at the bottom of this message is an example (1 of 3 i have tried) of trying to connect to a localhost mysql database. It wont, and the exception displayed is the one i have...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.