Thanks for the prompt answer! Sorry I missed your earlier comment...
I've looked at your example and repeated it using Ant and bnd. Maybe I
should learn maven instead.
Anyway, the bndwrap task nicely wraps the javaFX classpath that is
used for the build as a single bundle although it throws this warning:
[bndwrap] Warnings
[bndwrap] Superfluous export-package instructions:
I have no idea what this means yet.
As I don't have a swing application using FX elements, but a complete
FX application, I am not quite sure how to deal with loading magic. If
I ignore it, I receive a org.osgi.framework.BundleException:
Unresolved constraint in bundle 3: package; (package=javafx.geometry).
Ignoring clearly doesn't work. The odd thing is that the package is
exported according to the manifest of my SDK wrap.
I tried to use the following trick, which feels like a hack:
override public function start(context:BundleContext):Void{
var bundleClassLoader:ClassLoader =
this.getClass().getClassLoader();
var originalClassLoader:ClassLoader =
Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(bundleClassLoader);
//Set the stage...
Thread.currentThread().setContextClassLoader(originalClassLoader);
}
This seems to work together with setting all the packages which bnd
finds as import packages into the FRAMEWORK_SYSTEMPACKAGES_EXTRA
property of my custom felix launcher class. Unfortunately it stumbles
on an import package which is not captured by bnd. This puzzles me as
well.
I clearly misunderstand something or a lot, but I really would like to
get this working.
On May 13, 2009, at 11:55 PM, Patrick Forhan wrote:
I've mentioned this before, so forgive the repeat:
http://blog.muddyhorse.com/2009/02/maven-osgi-spring-javafx-ant/
Basically, we put most of the javafx stuff into a bundle, and used it
that way. Then we had to do some magic to be able to load CustomNodes
because of stylesheet issues.
Pat.
--
Defy mediocrity.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org
Wageningen University
Plant Production Systems
P.O. Box 430
6700 AK WAGENINGEN
The Netherlands
http://www.pps.wur.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org