Skip to main content

Cannot open jnlp from outside netbeans

2 replies [Last post]
Joined: 2009-05-23

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: Unable to load resource: http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDo...
at Source)
at Source)
at Source)
at Source)
at Source)
at 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$ Source)
at 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"?>



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.
Joined: 2003-12-09

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 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,

Joined: 2010-02-01


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??