Skip to main content

Cannot open jnlp from outside netbeans

2 replies [Last post]
christine23_t
Offline
Joined: 2009-05-23
Points: 0

I have done a project with a graphic application in javafx. I tried running the application from netbeans and everything works fine, but when i try to run the jnlp created by netbeans in dist folder it throws this exception:

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDo...
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(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.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I tried the url in the browser and it seems to work. difram.jar is the jar i made from my project from where the javafx application needs to take data.

This is the jnlp created by netbeans:

<?xml version="1.0" encoding="UTF-8"?>

Caraibe
Administrator

Caraibe

I need to present this project so it won't be very nice to open netbeans and run from there the application that's why i've posted this question.

Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ubiberger
Offline
Joined: 2003-12-09
Points: 0

I understand from your request that you want to start the javafx application from some remote server. Here are the steps to do this:

Deploy the javafx application by placing the files from the dist-folder of your netbeans project on your server.
Edit the xy_browser.jnlp (xy is the name of your project) and replace all the localhost-urls with your server urls.
Then open your browser and navigate to the webpage where you deployed the Javafx application.

See http://www.ubiberger.de/roller/java/search?q=jnlp for a sample jnlp file.

I noticed that netbeans has a server running on port 8093. That's why your scenario is only running when netbean is up.

Hope this helps,
Uli

micheledaiani
Offline
Joined: 2010-02-01
Points: 0

Hi!

I have the same problem, a cannot open jnlp from outside netbeans. I tried the instructions was wrote "ubiberger" but don't work.

Someone have another solution??