Building OpenJFX with errors: ANTLR missing

Tobias Bley tobi at ultramixer.com
Wed Feb 27 13:22:38 PST 2013


Hi Richard and Kevin,

I'm using JDK8-b77 (early access version from Oracle). I downloaded the three jars (antlr) too and stored them in master/lib folder. But when I run "ant" the build process fails with the "java.lang.NoClassDefFoundError: antlr/ANTLRException" during building decora-compiler.

So I suppose that the build scripts do not use the lib folder… do you know how can I tell ant scripts to use the lib folder?

Tobi


Am 27.02.2013 um 18:47 schrieb Richard Bair <richard.bair at oracle.com>:

> 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
> /Users/rbair/open-jfx/master/lib
> rbair-mac:lib rbair$ ls
> antlr-3.1.3.jar         antlr-runtime-3.1.3.jar stringtemplate-3.2.jar
> 
> Downloaded antlr from http://www.antlr3.org/download/
> 
> 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.
> 
> Richard
> 
> On Feb 27, 2013, at 3:48 AM, Tobias Bley <tobi at ultramixer.com> 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(Class.java:2474)
>> 	at java.lang.Class.getMethod0(Class.java:2715)
>> 	at java.lang.Class.getMethod(Class.java:1622)
>> 	at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:528)
>> 	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:510)
>> Caused by: java.lang.ClassNotFoundException: antlr.ANTLRException
>> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
>> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
>> 	at java.security.AccessController.doPrivileged(Native Method)
>> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>> 	... 6 more
>> Java Result: 1
>> 
>> As I read here (https://wikis.oracle.com/display/OpenJDK/Building+OpenJFX), 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