Fooling Equinox...... [message #1448638] |
Mon, 20 October 2014 04:14 |
Eclipse User |
|
|
|
Hi,
So for the last 6 months i have been working on JavaFx and OSGI (Equinox), but as separated Projects, and i have come to the point where i need to integrate these two techs together, so i have tried the two e(fx)clipse brilliant wizards
1- OSGI Application Project
2- OSGI Bundle Project
as a solution for this dilemma and i have come to this (feel obligated to correct me if wrong ) :
1- for the first wizard it is generating four projects which MR. Tom Schindl had explained in his blog http://tomsondev.bestsolution.at/2012/12/10/my-recommended-project-structure-for-javafx-e4-projects/, but when i looked at the Run Configuration of the launch i realized that it is running as an Eclipse Application , (and i need to start my system as an OSGI Framework), and notice this, there is a plug-in dependencies which looks like this , and the main class is extending an AbstractJFXApplication class and using an jfxStart method (not a standard JavaFX App)!!!! .
2- for the second wizard the generated project has the same structure as an plug-in development project (I SUPPOSE) adding the plug-in dependencies that looks like this .
Now i am using (eclipse-SDK-4.4-linux-gtk-x86_64-efx-1.0.0-SNAPSHOT) as a development Platform, when i try to run the second wizard generated project after adding simple stage-scene-anchorpane code to it , it works as a stand alone jar,BUT when i try to fire the whole system with Equinox System Bundle as an OSGI Framework i have errors regarding equinox not finding certain JavaFx Dependencies.
Now i kinda have a hint that Oracle didn't added the ((((JavaFx to the JRE Class-path)))) So Equinox Can't see it in run-time, and that led MR. Tom to develop those two wizards and using an adapter Hook to fool equinox.
and i need to develop Plug-in projects (Bundles) and have JavaFx Code in some of them, so the Questions that arises are:
Do i need to add the same Plug-in dependencies as in the first wizard? and HOW?
Any Thoughts Or Ideas are most and very welcome, any guidness or tutorials are most appreciated.
Thanks a lot.
Regards.
PS: if you are going to guide me to e4 apps, please explain Why and How? because i have a very bad experience with it, and the already done part of my project is written as plug-in development.
Attachment: image(1).png
(Size: 197.29KB, Downloaded 444 times)
Attachment: image(2).png
(Size: 134.32KB, Downloaded 443 times)
Attachment: image(3).png
(Size: 143.47KB, Downloaded 472 times)
Attachment: image(4).png
(Size: 102.35KB, Downloaded 480 times)
|
|
|
Powered by
FUDForum. Page generated in 0.06806 seconds