Malcolm Grayson

Greenhorn
+ Follow
since Apr 01, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Malcolm Grayson

Thanks for the reply. I adjusted my code as you suggested, but the error still remains.
16 years ago
I am having trouble with running my java application from the jnlp. The jnlp and the jar it is refering to are in the same directory (c:\home\jnlp_test\). The jnlp error is:

java.lang.ClassNotFoundException: spool.client.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(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)

The troubling part is that I can verify that the Main.class IS in the spool.jar. Furthermore I can run spool.jar from a batch file without problem. This leads me to believe that the error is with the jnlp itself.

Here is the jnlp file:

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Application -->
<jnlp spec="1.0+"
codebase="file://localhost/c:/home/jnlp_test"
href="spool.jnlp">
<information>
<title>Spool Tool Application</title>
<vendor>M.Grayson</vendor>
<homepage href="../rail/Index.html"/>
<description>AD HOC QUERY TOOL</description>
<description kind="short">2.0 Spool Tool</description>
<icon href="crossbuck.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4"/>
<jar href="file://localhost/c:/home/jnlp_test/spool.jar"/>
<jar href="http://MyServer/lib/jacob.jar"/>
<jar href="http://MyServer/lib/jxl.jar"/>
<jar href="http://MyServer/lib/classes12.jar"/>
</resources>
<resources>
<os="Windows"/>
<nativelib href="http://MyServer/lib/jacob_dll.jar"/>
</resources>
<application-desc main-class="spool.client.Main"/>
</jnlp>

I'm stumped! Can anyone shed some light onto this problem. Thanks in advance. Cheers!
16 years ago