bundling all jars into single jar (one-jar) and run this jar from web start

hi i am new to java web start. I am not sure whether this is possible

Issue: I am bundling all jar files into single jar file. Which is a greate solution... (I got this solution from : http://www.developertutorials.com/print/215.html or ). It is woking fine when i double click this One-Jar.jar(contains Boot startup package, main/main.jar(my application), lib/*.jar, images folder, and config folder).

I have created jnlp file and try to run from webstart. But i am getting

Following code (Single jar solution) from :http://one-jar.sourceforge.net/preview/

Version 0.96

Error:

java.lang.NullPointerException

at com.simontuffs.onejar.Boot.getMyJarPath(Unknown Source)

at com.simontuffs.onejar.Boot.run(Unknown Source)

at com.simontuffs.onejar.Boot.main(Unknown Source)

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.doLaunchApp(Unknown Source)

at com.sun.javaws.Launcher.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

thanks for the help!!!!!!!!!!!

[1445 byte] By [Surya_Fidelitya] at [2007-11-27 0:09:22]
# 1

This exception is being thrown from your code.

Guessing from the methods name, "getMyJarPath" ...

A possible reason is the offending lines only work under the assumption that the application is loaded from the default class loader. Java Web Start applications are loaded by a JNLPClassLoader, so any code calling the SystemClassLoader or ApplicationClassLoader directly, and assuming the running code will have been loaded from that ClassLoader will fail.

/Andy

dietz333a at 2007-7-11 16:09:25 > top of Java-index,Desktop,Deploying...