-
1. Re: How do I make jfxrt.jar available?
ctomc Mar 25, 2014 9:31 AM (in response to randahl)First option you did with "Dependency: javafx.api" should work.
Maybe you are just missing some of the dependencies for this module or you just missed some package/path.
does exception change in any way when you add the module as dependency?
-
2. Re: How do I make jfxrt.jar available?
randahl Mar 25, 2014 9:36 AM (in response to ctomc)Nope, the exception has been the same each time.
-
3. Re: How do I make jfxrt.jar available?
randahl Mar 25, 2014 11:00 AM (in response to randahl)I have found solution to this. It turns out, WildFly allows you to place a jboss-deployment-structure.xml file in the META-INF folder of your EAR file (or WAR). Using this file you can tell WildFly to make the missing classes available to your application.
The positive aspect of this is, the configuration follows your application, meaning your can install it on WildFly without reconfiguring the server itself.
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<system export="true">
<paths>
<path name="javafx/animation"/>
<path name="javafx/application"/>
<path name="javafx/beans"/>
<path name="javafx/beans/binding"/>
<path name="javafx/beans/property"/>
<path name="javafx/beans/property/adapter"/>
<path name="javafx/beans/value"/>
<path name="javafx/collections"/>
<path name="javafx/collections/transformation"/>
<path name="javafx/concurrent"/>
<path name="javafx/css"/>
<path name="javafx/embed/swing"/>
<path name="javafx/embed/swt"/>
<path name="javafx/event"/>
<path name="javafx/fxml"/>
<path name="javafx/geometry"/>
<path name="javafx/print"/>
<path name="javafx/scene"/>
<path name="javafx/scene/canvas"/>
<path name="javafx/scene/chart"/>
<path name="javafx/scene/control"/>
<path name="javafx/scene/control/cell"/>
<path name="javafx/scene/effect"/>
<path name="javafx/scene/image"/>
<path name="javafx/scene/input"/>
<path name="javafx/scene/layout"/>
<path name="javafx/scene/media"/>
<path name="javafx/scene/paint"/>
<path name="javafx/scene/shape"/>
<path name="javafx/scene/text"/>
<path name="javafx/scene/transform"/>
<path name="javafx/scene/web"/>
<path name="javafx/stage"/>
<path name="javafx/util"/>
<path name="javafx/util/converter"/>
<path name="netscape/javascript"/>
</paths>
</system>
</dependencies>
</deployment>
</jboss-deployment-structure>