Sunday, July 1, 2012

Bookmark and Share

While thinking about how to take advantage of Bean Validation within JavaFX 2 based applications, I just learned that JavaFX is actually part of the JDK installation since Java SE 7 Update 2. The latest JDK (Update 5) comes with JavaFX 2.1.1.

This makes it very easy to use the JavaFX API within Maven based applications; all what's required is to add the following dependency to your POM file:

1
2
3
4
5
6
7
<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>javafx-runtime</artifactId>
    <scope>system</scope>
    <version>2.1.1</version>
    <systemPath>${java.home}/../jre/lib/jfxrt.jar</systemPath>
</dependency>

That was simple :)

Now to the bad news: as it seems the installation doesn't contain the JavaFX API sources or JavaDocs. But that's not really a problem, as a ZIP with the sources can be downloaded from OpenJFX's Mercurial server and the latest Javadocs can be found here.

2 comments:

Unknown said...

Are you using javafxpackager with maven?

Violet Booth said...

Being lightweight, extremely fast, and smooth, PHPStorm is the most standard choice for other PHP development tools. This PHP IDE works well with PHP frameworks like Zend Framework, Symfony, Yii, Laravel, CakePHP, and popular Content Management Systems (CMS) like Drupal, Magento, and WordPress. If you are a freelance developer working on PHP development projects, this tool will certainly come in handy. If you wish to get high ticket clients and premium projects, then freelancing sites like Eiliana.com is the right place for you because it provides freelance developers with more development and testing projects from top clients.