JavaFX on Java 1.6

557 views
Skip to first unread message

Eric Coolman

unread,
Sep 13, 2012, 7:24:00 PM9/13/12
to codenameone...@googlegroups.com
Just a heads up, if you're still using Java 1.6 (I do for technical reasons not related to Codename One), it's still possible to get the new enhanced browser and media support.  Windows users can simply download JavaFX from Oracle.  Linux and Mac users will need to have the JRE 1.7 r6 or newer installed (Oracle only offers JavaFX standalone for windows - boo...).

In Eclipse

right click the Simulator_*.launch file from the root of your project, select Run As, Run Configurations, click the Classpath tab, click the User Entries section, then click the Add External JARs button.  Navigate to the JavaFX runtime (if in Windows) or the Java 1.7 jre/lib directory, and select the jfxrt.jar file.

In Netbeans

right click your project, click Properties, Libraries, then select the Run tab, then click the Add JAR/Folder button.  Navigate to the JavaFX runtime (if in Windows) or the Java 1.7 jre/lib directory, and select the jfxrt.jar file.


NOTE: The code within the jfxrt.jar file will be looking for native libraries specific to your platform relative to the location of the jar, so moving the jfxrt.jar to your project will not work.


Shai Almog

unread,
Sep 14, 2012, 3:00:35 AM9/14/12
to codenameone...@googlegroups.com
Thanks Eric. While I did migrate to Java 7 I find it a bit flaky in comparison to Java 6, this can be quite useful!
Reply all
Reply to author
Forward
0 new messages