Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi, I now make a javafx project and integrate it to swt display using FXCanvas.
I refer JavaFX Interoperability with SWT
The project bulid and run successfully in eclipse.
But when I export it to runnable jar file, the jar don't run.
For SWT only or javafx only, externed jar run successfully. But integrate them I couldn't run jar.
I use jdk1.6u29(there is no need to update jdk with new one. The reson is that our old project bulid in jdk1.6 and the leader don't need to update it.) and javafx2.2.
I add jfxrt.jar exist in C:/program files(x86)/oracle/javafx/runtime/lib to bulid path. I use eclipse indigo.
In "Runnable JAR File Export" dialog I choose first "Extract required libraries into generated JAR" for "library handling"
Is there any way to run the jar file successfully.
Please help me. Thanks.
Posted
Updated 7-Aug-15 18:27pm
v3

1 solution

I was faced with the problem.
I resolved follow as.
1. uninstall already installed all jdk.
2. install jdk1.6u29.
3. link jfxrt.jar of JavaFx2.2 SDK in eclipse project.
4. export runnable jar.
5. when running exported runnable jar, refer to dlls of JavaFx2.2
then you can run jar. and JavaFx2.2 is connected to jdk1.6u29.

if any question, ask yongyong_2014@163.com
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900