Solved

JNLP is driving me crazy, please help

Posted on 2004-10-19
3
381 Views
Last Modified: 2010-08-05
I am running some tests on JNLP and have created this very small class:

package itccms;
public class fulford {
  public static void main(String[] args) {
  }
}

I know it does nothing but I am just testing my setup.

I created the JNLP file as follows:

<? header ("Content-Type: application/x-java-jnlp-file"); ?>
<jnlp codebase="http://localhost/itccms/" href="itccms.jnlp">
      <information>
            <title>ITCCMS UK IT Department</title>
            <vendor>Test Vendor</vendor>
            <homepage href="http://localhost/itccms/" />
            <description kind="short">Change Control Monitor</description>
            <offline-allowed />
      </information>
      <resources>
              <j2se version="1.4+ 1.3+"/>
              <jar href="itccms.jar"/>
            </resources>
<application-desc main-class="fulford">

</application-desc>

    </jnlp>

I am using Apache running under Windows 2000
When I call my site HTTP://localhost/itccms the directory of the site is displayed and I can see the .JAR and the .JNLP in the root of this directory. When I click on the JNLP file, it starts up, but I keep getting this error:

JNLPException[category: Launch File Error : Exception: null : LaunchDesc:

<jnlp spec="1.0+" codebase="http://localhost/itccms/" href="http://localhost/itccms/itccms.jnlp">

  <information>

    <title>ITCCMS UK IT Department</title>

    <vendor>Test Vendor</vendor>

    <homepage href="http://localhost/itccms/"/>

    <description></description>

    <description kind="short">Change Control Monitor</description>

    <description kind="one-line"></description>

    <description kind="tooltip"></description>

    <offline-allowed/>

  </information>

  <resources>

    <j2se initial-heap-size="-1" max-heap-size="-1" version="1.4+ 1.3+"/>

    <jar href="http://localhost/itccms/itccms.jar" download="eager" main="false"/>

  </resources>

  <application-desc main-class="fulford"/>

</jnlp> ]

      at com.sun.javaws.LaunchDownload.getMainClassName(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)

Where Have I gone wrong? My can't it see the jar file (I assme that's the problem because I moved it to a sub folder and got the same error).

Any help appreciated
0
Comment
Question by:MushyPeeze
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 12354706
> <application-desc main-class="fulford">

try changing that to:

<application-desc main-class="itccms.fulford">
0
 

Author Comment

by:MushyPeeze
ID: 12354834
Arrggghhh! It could not be that easy (sure I tried that!). Obvious when you think of it!

Yep does work! (hides face in embarassement).

Cheers Objects once again you did it.
0
 
LVL 92

Expert Comment

by:objects
ID: 12354861
no worries :)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
map related example 6 47
Error in @AspectJ Based AOP with Spring 2 13
hibernate jars 4 28
Is Applet the way to go for my drag and drop system? 8 10
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question