| Author |
How to embed JavaFX 2.0 application with jsp (to deploy it on server)
|
maddy madhu
Greenhorn
Joined: Feb 08, 2012
Posts: 3
|
|
Hi All,
i am very new to JavaFX 2.0, i have downloaded the javaFX sdk and runtime and created standalone projects using eclipse IDE.
now i want to deploy these stand alone application in jboss server to give demo to my client, i tried so many ways but failed to deploy the application on server.
can any body tell me the steps how can i embed and deploy the javaFX 2.0 application on server.
the below one is my javaFX code.
Thanks in Advance
Maddy.
|
 |
Mohamed Sanaulla
Bartender
Joined: Sep 08, 2007
Posts: 2694
|
|
|
You can embed it as an applet or even deploy it as a jnlp application. You can find more details here.
|
Mohamed Sanaulla | My Blog
|
 |
Mohamed Sanaulla
Bartender
Joined: Sep 08, 2007
Posts: 2694
|
|
|
And Welcome to Javaranch. Please UseCodeTags for posting your code. I have edited the post and added the code tags for you.
|
 |
maddy madhu
Greenhorn
Joined: Feb 08, 2012
Posts: 3
|
|
Thank you very much Mohamed for quick reply.
i have tried to embed JavaFX application with applet code but it has thrown exception like its not an applet and can't be type cast some thing.
i dont know JNLP much but i have tried with sample code which are available on web but its giving jnlp error
my jnlp and jsp code is here:
can you please give me some sample code or tell me what is the problem in my code.
Thanks,
Maddy.
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 3221
|
|
The code in your last post is JavaFX 1.x, not JavaFX 2.0. Learn to tell the difference between a scripting language and a Java API.
Have you gone through the JavaFX 2.0 tutorials and documentation? There's a section on Deployment in the Browser.
edit I see Mohamed Sanaulla already gave you a link to the Deployment section of the same tutorial. Didn't you click the link and read the page?
|
luck, db
There are no new questions, but there may be new answers.
|
 |
John Damien Smith
Greenhorn
Joined: Jan 26, 2012
Posts: 16
|
|
You can refer to my answer to your question here: https://forums.oracle.com/forums/thread.jspa?threadID=2344301&tstart=15
I believe the last post by maddy was JavaScript not JavaFX script, but the embedding JavaScript does not like correctly uses the JavaFX deployment toolkit http://java.com/js/dtjava.js and provide an identified html div placeholder for the application as instructed in section 5 of the deployment guide referred to by Darryl.
|
 |
maddy madhu
Greenhorn
Joined: Feb 08, 2012
Posts: 3
|
|
Thank you very much John,
i have changed jsp page to html page and instead of dtfx.js i am using dtjava.js
the below one is my html page
can you please help me on this.
Thanks,
Maddy.
|
 |
 |
|
|
subject: How to embed JavaFX 2.0 application with jsp (to deploy it on server)
|
|
|