X Tutup
Skip to content

Commit dcc7223

Browse files
committed
Fix build if JavaFX is missing (v2)
"Starting with JDK 8u33, JavaFX Embedded is removed from the ARM bundle and is not supported." Note: there is an OpenJFX project, but this would probably have to be an external compile-time dependency.
1 parent 3c4b68a commit dcc7223

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/build.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,28 @@
3232
</condition>
3333
<!--<echo message="compiler is ${build.compiler}" />-->
3434

35+
<!-- JavaFX got removed from the Oracle's JDK for arm -->
36+
<condition property="fx.unavailable" value="true">
37+
<equals arg1="${os.arch}" arg2="arm" />
38+
</condition>
39+
3540
<!-- link against apple.jar for the ThinkDifferent class -->
3641
<mkdir dir="bin" />
3742
<javac source="1.7"
3843
target="1.7"
3944
encoding="UTF-8"
4045
includeAntRuntime="false"
4146
debug="true"
42-
srcdir="src" destdir="bin"
47+
destdir="bin"
4348
classpath="apple.jar;
4449
library/jogl-all.jar;
4550
library/gluegen-rt.jar"
4651
nowarn="true">
4752
<!-- kinda gross, but if not using the JDT, this just ignored anyway -->
4853
<compilerclasspath path="${jdt.jar}; ../java/mode/jdtCompilerAdapter.jar" />
54+
<src path="src" />
55+
<include name="processing/**" />
56+
<exclude name="processing/javafx/**" if="fx.unavailable" />
4957
</javac>
5058

5159
<!-- Copy the jnilib to the bin folder so it's included. -->

0 commit comments

Comments
 (0)
X Tutup