Thanks for the explanation of the uses:= clause. It still does not work. I get the same errors as reported last week and I don't know what I do wrong. I also tried to bundle each jar in the SDK separately, but that didn't work either. I am open to all creative solutions.

If used the following ant script to create the javafx bundle:
        <target name="build" description="wraps javaFX jars">
                <jar destfile="test.jar">
                        <zipgroupfileset dir="${javafx.path}/lib">
                                <include name="**/*.jar"/>
                        </zipgroupfileset>
                </jar>
<bndwrap jars="test.jar" definitions="${basedir}/bnd" output="javafx.runtime.jar"/>
                <delete file="test.jar"/>
                <move file="javafx.runtime.jar" todir="${common.basedir}/bundles" 
/>
        </target>

This is the test.bnd definition file:
Export-Package:com.sun.gluegen.*,\
 !com.sun.javafx.runtime.adapter,\
 !com.sun.javafx.runtime.liveconnect,\
 !com.sun.javafx.runtime.provider,\
 !com.sun.javafx.api.*,\
 com.sun.javafx.*,\
 com.sun.embeddedswing,\
 com.sun.media.*,\
 com.sun.medialib.*,\
 com.sun.opengl.*,\
 com.sun.scenario.*,\
 com.sun.stylesheet.*,\
 javax.media.opengl.*,\
 org.jdesktop.layout,\
 !javafx.fxunit,\
 javafx.*

On May 14, 2009, at 9:03 PM, Patrick Forhan wrote:

These are automatically created by bnd, as are the SDK headers. The export headers of the sdk look a bit different. BND does not explicitly mention these packages, but wraps them in a 'uses:=' statement. Could this be the
problem?

If I understand it correctly the uses:= clauses are there to give
hints to the container.  It basically indicates that you will have to
find those packages somewhere.  I would try to instruct BND to export
*at least* all of the javafx.* packages.  The configuration I use has
the following packages exported:

                           com.sun.gluegen.*,
                           !com.sun.javafx.runtime.adapter,
                           !com.sun.javafx.runtime.liveconnect,
                           !com.sun.javafx.runtime.provider,
                           !com.sun.javafx.api.*,
                           com.sun.javafx.*,
                           com.sun.embeddedswing,
                           com.sun.media.*,
                           com.sun.medialib.*,
                           com.sun.opengl.*,
                           com.sun.scenario.*,
                           com.sun.stylesheet.*,
                           javax.media.opengl.*,
                           org.jdesktop.layout,
                           !javafx.fxunit,
                           javafx.*,

I don't remember quite why the com.sun.* stuff is exported and not
private-packaged, but that is working for us at the moment.

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

Reply via email to