This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JavaFX Web Start failure – FailedDownloadException: Unable to load resource:

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have deployed JavaFX app to web. At local host works fine only applet. Runned from a file works both – applet and web start.

But after deploying to web server I got this exception (probably for both of them):

Ignored exception: ExitException[ 3]com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/C:/Users/Jan/AppData/Local/Microsoft/Windows/INetCache/IE/jar/myapp.jar

JNLP:
I have found some solution:


Regardless I hope this is the right one it wasn't.

I have tried Google but there is too much similar issues so I gave it up.
 
Petr Omáčka
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem is solved but not the way I want to. I am using folder structure like this:

root
  • arc – storing jar
  • jnlp – storing jnlp file
  • con – storing html files


  • Problem is somewhere in relative URLs. I have put arc and jnlp together and I have removed relative URLs and it is working now.

    Relative path in jnlp was:
    ..\arc\myapp.jar

    Relative path in html was:
    ..\jnlp\myapp.jnlp

    I could not find out the proper paths shapes.
     
    Greenhorn
    Posts: 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Could you further elaborate how did you solve it?
     
    I'm not sure if I approve of this interruption. But this tiny ad checks out:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
      Bookmark Topic Watch Topic
    • New Topic