The OpenJFX compiler is a pure Java application built using open source tools. This page describes how to build it on your system.

System RequirementsEdit

  • The 1.7.0 version of Apache Ant. To verify you have the correct version, run "ant -version" from a command-line shell; you should see a string starting with "Apache Ant version 1.7.0".

Building from the Command-LineEdit

  • Increase the maximum memory Ant uses: set the ANT_OPTS environment variable to "-Xmx256m" or more. This variable can be stored as a shell or system environment variable, or can be stored in %HOME%\antrc_pre.bat (Windows) or ~/.antrc (for more details, see Running Ant).
  • Download the project source: as described on the project page's Subversion link, run the following command, substituting your login. If you are prompted for a password, use your login password.
svn checkout
    openjfx-compiler --username your-login
  • Change to the newly-created project top-level directory:
cd openjfx-compiler
  • List the project's build targets (this and the following commands are all run in the project's top-level directory):
ant -projecthelp
  • Build and test the project:
ant all

The first time a build is run, the external tools necessary to build the compiler are copied from the Internet to its tools/ directory (these tools are all open-source and freely available). When the build finishes successfully, the project distribution is now in the dist/ directory.

  • To restore the project to its unbuilt state, run:
ant clean
  • To update the project source, run:
svn update

Building Using the NetBeans IDEEdit

In Netbeans 6.0, go the menu "Versioning", then "Subversion", and "Check Out".

Enter the Repository URL:

Enter your username and password. Hit next.

For Repository Folder(s), put:


Then click Finish.

Open the JavaFX Compiler and JavaFX Runtime projects (ignore the reference problems warning). To build, right-click on the Java FX Compiler project and select "Build"; then do the same for the Java FX Runtime. Then right-click each project again, and choose "Resolve Reference Problems". The unresolved reference jar files are either in the tools/ or the dist/lib/ directories.

Choose the menu "Versioning", then "Update" to update your svn files.

Frequently Asked QuestionsEdit

1. When I launch any command with ant for the OpenJFX compiler, I get the following error message: "No supported regular expression matcher found: java.lang.ClassNotFoundException:"

You need to have the Ant "optional" libraries installed. If running Linux with Apt, the package is called ant-optional. It appears that in the Apt repositories, the bare-bones Ant distribution (called ant) is separate from the optional distribution. Check with your package manager as to whether ant-optional is installed. An alternative is to install the distribution from the Apache Ant site, which appears to contain the optional Jars. (reported from system running Ubuntu Gutsy with Ant 1.7 installed)

Back to OpenJFX Compiler

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.