Why isn't JavaFX on the jdk1.7.0_u10build12 class path?
kevin.rushforth at oracle.com
Tue Oct 23 19:13:28 PDT 2012
Right. The work needed to put FX onto the classpath by default isn't
done yet. It is targeted for JDK 8, with the possibility of back-porting
it to JDK 7u12 / FX 2.2.6.
Scott Palmer wrote:
> JavaFX has been bundled since 7u7 anyway… but it is not on the classpath by default. Presumably someone was scared of breaking stuff. The JavaFX app packager does some magic to get it on the classpath for runtime.
> For Maven there are a couple of options. One is to use the dreaded "system" scope:
> Use the "enforcer" plugin to require at lest 7u7.
> (see http://maven.apache.org/plugins/maven-enforcer-plugin/rules/requireJavaVersion.html)
> And then do the same sort of classpath hackery that the app packager stubs do for runtime. Or just use -Xbootclasspath/a:
> On 2012-10-23, at 9:37 PM, Randahl Fink Isaksen <randahl at rockit.dk> wrote:
>> I upgraded to jdk 7u10 build 12 and I can see it comes with a JavaFX 2.2.4 inside it. So I thought I would go ahead and remove my maven dependency on the trusty old JavaFX 2.2.0-b19.
>> However when I try to build my application with NetBeans it does not find the JavaFX classes. If I open the Java platform manager in NetBeans it also shows that jfxrt.jar is not on the class path of the JDK 1.7 (default) platform.
>> Am I supposed to still extract the jfxrt.jar and the dylibs and manually create a maven dependency, or have I overlooked something here?
More information about the openjfx-dev