Solved

JNLP is driving me crazy, please help

Posted on 2004-10-19
3
379 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
Comment Utility
> <application-desc main-class="fulford">

try changing that to:

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

Author Comment

by:MushyPeeze
Comment Utility
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
Comment Utility
no worries :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mapShare challenge 13 67
wordlen challenge 3 46
Modeling a class in java 5 31
Free Alternative to JIRA 4 51
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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:

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now