Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Java Web Start Launch Failed. Why????

  • 14-03-2005 06:16PM
    #1
    Moderators, Society & Culture Moderators, Sports Moderators, Paid Member Posts: 12,411 Mod ✭✭✭✭


    Hi everyone

    Im using Java Web Start to start an application which allows a user to select an image on their machine. it will eventually do more but for testing purposes i just want to get this part working.

    However when i try to run it i get these exceptions:

    JNLPException[category: Download Error : Exception: java.io.IOException: HTTP response 404 : LaunchDesc: null ]
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
    at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)

    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)

    at com.sun.javaws.Launcher.downloadResources(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)

    here is a copy of my jnlp file to run the application>
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for FileChooserDemo2 -->
    <jnlp
      spec="1.0+"
      codebase="http://performancecars.ie/Fatcamp/Chooser2"
      href="FileChooserDemo2.jnlp">
      <information>
        <title>Choose an Image</title>
        <vendor> Image Labs </vendor>
        <homepage href="http://performancecars.ie/fatcamp"/>
        <description>Image File Chooser</description>
        <description kind="short">Choose an image file on your computer.</description>
        <offline-allowed/>
      </information>
      <security>
      <all-permissions/>
      </security>
      <resources>
        <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
        <jar href="http://performancecars.ie/Fatcamp/Chooser2/allclasses.jar" download="eager" main="false"/>
        <jar href="http://performancecars.ie/Fatcamp/Chooser2/images.jar" download="eager main="false"/>
      </resources>
      <application-desc main-class="FileChooserDemo2"/>
    </jnlp> 
    

    all my jars are signed so I dont think that is the problem. I have searched the internet for answers to this and i cant find any. One answer was that my browser does not support the MIME type application/x-java-jnlp-file but i have successfully run .jnlp examples from the sun website so I dont think this is the case.

    One guy said he had the same problem and solved it by changing the java webstart proxy settings but i dont use a proxy server so im really stuck. I have put all the resources needed on line and im having serious problems.

    Im on a really tight time schedule so any help would be great im getting desperate have been at this for couple of days and just cant get it.

    Thanks alot
    Patrick


Comments

  • Moderators, Society & Culture Moderators, Sports Moderators, Paid Member Posts: 12,411 Mod ✭✭✭✭Kingp35


    does anyone have any ideas at all.it would be a huge help to me.


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    Is the jar actually at the codebase address when you run the jnlp? Is the jnlp there? I had this problem recently ,adn it was something along those lines. It's a bloody fussy system. It's probably something to do iwth paths. it works when run from the JAR, right?


  • Closed Accounts Posts: 324 ✭✭madramor


    404 error means cannot find what its looking for
    as before
    make sure directory http://performancecars.ie/Fatcamp/Chooser2 contains
    FileChooserDemo2.jnlp
    allclasses.jar
    images.jar

    also, ref mime type, did you setup the server to serve the mime type


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    One other thing on this topic. You realise that on a UNIX server, such as the one you're using, http://performancecars.ie/Fatcamp/ and http://performancecars.ie/fatcamp/ are different entities? In your case, Fatcamp doesn't exist.
    Rob.


  • Moderators, Society & Culture Moderators, Sports Moderators, Paid Member Posts: 12,411 Mod ✭✭✭✭Kingp35


    ok im not entirely sure this is the problem but I made sure all of the items that i need are in the correct codebase thanks to rsynnott and i corrected my codebase so now all of the correct resources are in the right codebase which is http://performancecars.ie/fatcamp/Chooser2.

    This is the exact url that i have in my jnlp file for the codebase but when i run the jnlp file it is reading the codebase in as http://performancecars.ie/fatcamp/chooser2 for some reason. Its reading Chooser2 with a small c instead of a large C and I think this could be the problem. The error its giving me is

    An error occurred while launching/running the application.

    Title: Choose an Image
    Vendor: Image Labs
    Category: Download Error

    Unable to load resource: http://performancecars.ie/fatcamp/chooser2/FileChooserDemo2.jnlp

    and then the same 404 exception as above as well. I have tried to correct the codebase to read it in as a large C but doesnt seem to be working.

    Could this be my problem and does anyone know how to fix this. Maybe making a completely new jnlp file might work??


  • Advertisement
Advertisement
Advertisement