0

I already read a lot of stuff about deployment of JavaFX but it was not possible for me to deploy my JavaFX application, embedded in a web page (web project), onto my wildly AS successfully.

Links I read:

My project structure of the web project looks like this: web project structure

Notice that I already included the three required JAR-files in the root directory. (jlnp.jar, jlnp-servlet.jar, jardiff-0.2.jar) [I still don't know why I need them, because on the oracle documentation the files are not mentioned.]

It is really frustrating not to get any feedback what went wrong. When I access the web page all I can see is the link for the web start and in the area where my app should appear only one line is displayed telling me that a runtime error occured.

enter image description here

Even when I access the details (clicking on the runtime error line) I cannot find anything which gives me a hint, how I can solve this problem. Maybe somebody can tell me how to use the console to debug my application.

enter image description here

Sorry that the windowtext is in german. But anybody who already used that console should know what I am talking about.

Thanks for your help.

Setup:

  • Eclipse Luna 4.4.0
  • JavaFX 8 [e(fx)clipse for building the deployment files]
  • Wildfly 8.x
  • Safari 7.0.5
Community
  • 1
  • 1
milius
  • 93
  • 2
  • 5

2 Answers2

0

I was the same error and I have add my site into security of Java (I run on window 7)

step 1: Start -> Search by Configure Java -> Then open it

step 2: add your site in tab Security

Configuration Java to run javafx application on web

step 3: Refresh website

0

I played a little bit around with javafx applets and my conclusion is that you should try to avoid them.

Even if you get it working at your browser other clients will have their problems when trying to use them.

You should prefer a real Java EE web application for such a case

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
maimArt
  • 389
  • 1
  • 11