This discussion is archived
6 Replies Latest reply: Jul 23, 2012 7:57 AM by 950823 RSS

JNLP file

950823 Newbie
Currently Being Moderated
I am trying to run from a web browser a simple java application that print the Hello World message. I have the jnlp file, java class compiled, and the html file and I am getting the following error constanly.

This is the source:

     <?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+">
<title>Hello Wolrd!!</title>
<vendor>VW International</vendor>
<!-- Application Resources -->
          <j2se version="1.6+"
<jar href="HelloWorld.jar"></jar>

Exception Tab : frm java web start

</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 Source)
at Source)

Any help? Thank you,

  • 1. Re: JNLP file
    EJP Guru
    Currently Being Moderated
    The beginning of the exception is missing.
  • 2. Re: JNLP file
    817264 Journeyer
    Currently Being Moderated
    Attibute name should be "main-class"
  • 3. Re: JNLP file
    950823 Newbie
    Currently Being Moderated
    the main-class="HelloWorld" is below the application-desc tag..
  • 4. Re: JNLP file
    gimbal2 Guru
    Currently Being Moderated
    No it is not - there is name-class, not main-class. At least in the XML blob that was posted. Perhaps when you post it between \
     tags it will become readable enough that you yourself see it.                                                                                                                                                                                                                                                                                                                                                                                                                
  • 5. Re: JNLP file
    EJP Guru
    Currently Being Moderated
    No it isn't. Look again.
  • 6. Re: JNLP file
    950823 Newbie
    Currently Being Moderated
    Thanks it works now!


  • Correct Answers - 10 points
  • Helpful Answers - 5 points