Building OpenJFX with errors: ANTLR missing

Richard Bair richard.bair at
Wed Feb 27 09:47:50 PST 2013

Hi Tobias,

I've just done a fresh clone & went through the instructions and didn't see this particular issue (I have other issues when compiling with Java 8 on my Mac).

I have:

rbair-mac:lib rbair$ pwd
rbair-mac:lib rbair$ ls
antlr-3.1.3.jar         antlr-runtime-3.1.3.jar stringtemplate-3.2.jar

Downloaded antlr from

The other steps I have to take to build on 8 is to (a) use b74 of JDK 8 to build with (anything newer is running into Java 8 bugs with JavaDoc that fails to build), and (b) use jfxrt.jar from b77 of JDK 8, and ( c) for some reason I have to set JAVA_HOME to b74 for things to work.


On Feb 27, 2013, at 3:48 AM, Tobias Bley <tobi at> wrote:

> Hi,
> I tried to build the current OpenJFX but I'm getting the following error:
> Created dir: /Applications/Developer/Java/open-jfx/master/rt/decora-compiler/build/gensrc/com/sun/scenario/effect/compiler
> java
> Exception in thread "main" java.lang.NoClassDefFoundError: antlr/ANTLRException
> 	at java.lang.Class.getDeclaredMethods0(Native Method)
> 	at java.lang.Class.privateGetDeclaredMethods(
> 	at java.lang.Class.getMethod0(
> 	at java.lang.Class.getMethod(
> 	at sun.launcher.LauncherHelper.validateMainClass(
> 	at sun.launcher.LauncherHelper.checkAndLoadMain(
> Caused by: java.lang.ClassNotFoundException: antlr.ANTLRException
> 	at$
> 	at$
> 	at Method)
> 	at
> 	at java.lang.ClassLoader.loadClass(
> 	at sun.misc.Launcher$AppClassLoader.loadClass(
> 	at java.lang.ClassLoader.loadClass(
> 	... 6 more
> Java Result: 1
> As I read here (, I have to put the antlr libs in the "open-jfx/master/lib" directory. But it doesn't help
> Any ideas?
> Best regards,
> Tobi

More information about the openjfx-dev mailing list