Compilation Build Failures

Peter Pilgrim peter.pilgrim at gmail.com
Fri Dec 9 03:30:47 PST 2011


Hi

I am getting build compilation failures

C:\Users\PeterP\Documents\Projects\openjfx-master\rt\javafx-ui-controls>ant
Buildfile: C:\Users\PeterP\Documents\Projects\openjfx-master\rt\javafx-ui-controls\build.xml
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antcontrib.properties. It
 could not be found.

-pre-init:

init:

jar:
    [javac] Compiling 167 source files to
C:\Users\PeterP\Documents\Projects\openjfx-master\rt\j
avafx-ui-controls\build\classes
    [javac] C:\Users\PeterP\Documents\Projects\openjfx-master\rt\javafx-ui-controls\src\com\java
fx\preview\control\ComboBox.java:28: package com.sun.javafx.css does not exist
    [javac] import com.sun.javafx.css.StyleManager;
    [javac]                          ^
    [javac] C:\Users\PeterP\Documents\Projects\openjfx-master\rt\javafx-ui-controls\src\com\java
fx\preview\control\ComboBox.java:34: package javafx.beans does not exist
    [javac] import javafx.beans.InvalidationListener;
    [javac]                    ^
    [javac] C:\Users\PeterP\Documents\Projects\openjfx-master\rt\javafx-ui-controls\src\com\java
fx\preview\control\ComboBox.java:35: package javafx.beans does not exist
    [javac] import javafx.beans.Observable;
    [javac]                    ^

How do specify the JavaFX runtime location?

In the project.properties file I edited the JFXRT_HOME property setting to:

OLD_JFXRT_HOME=\
    ${runtime.dist.root.dir}/../artifacts/sdk/rt/lib
#JFXRT_HOME=C:\\Program Files\\Oracle\\JavaFX 2.0 SDK\\rt\\lib
JFXRT_HOME=C:\\Users\PeterP\\Documents\\Projects\\openjfx-master

First, I figured out that the ant build does not like spaces  and then
I copied the jfxrt.jar into the workspace root directory...

-- 
Peter Pilgrim,


More information about the openjfx-dev mailing list