My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
The JavaFX runtime is not available in any public Maven repository, it has to be installed in the local repository manually using the command below:

mvn install:install-file -Dfile=/path-to/javafx-sdk2.0-beta/rt/lib/jfxrt.jar -DgroupId=com.oracle -DartifactId=javafx-runtime -Dversion=2.0-beta -Dpackaging=jar -DgeneratePom=true

Naturally the path-to must be your path to where the JavaFX SDK is installed.
Next, the relevant binary JNI files in the lib directory need to be installed; create a zip file containing all files in the lib directory in the root and install that in the local repository using the command below:

mvn install:install-file -Dfile=/path-to/bin.zip -DgroupId=com.oracle -DartifactId=javafx-runtime -Dversion=2.0-beta -Dclassifier=windows -Dpackaging=jar -DgeneratePom=true

Now the correct artifacts can be found.

However, JavaFX will load the binaries in the zip file from a path relative to the jfxrt.jar, being ../bin or from java.library.path.
JFXtras contains a utility method that will unpack these files to a temp directory and set java.library.path accordingly:

jfxtras.application.Application.prelaunch();

This method must be called before the launch method.

Change log

d15b3373cc48 by Tom Eugelink on Sep 13, 2011   Diff
removed slf4j
Go to: 
Project members, sign in to write a code review

Older revisions

08653918b2fd by U...@computer.localdomain on Aug 28, 2011   Diff
small changes
fe2ce5849a16 by U...@computer.localdomain on Aug 28, 2011   Diff
maven integration
All revisions of this file

File info

Size: 1222 bytes, 17 lines
Powered by Google Project Hosting