Building OpenJFX with errors: ANTLR missing
Kevin Rushforth
kevin.rushforth at oracle.com
Wed Feb 27 09:46:39 PST 2013
I just tried this and it works fine for me doing the following:
1. Run the following commands:
hg clone http://hg.openjdk.java.net/openjfx/8/master
cd master
hg clone http://hg.openjdk.java.net/openjfx/8/master/rt
mkdir lib
2. Put the following three files into master/lib (as stated on the Wiki):
* antlr-3.1.3.jar
* antlr-runtime-3.1.3.jar
* stringtemplate-3.2.jar
3. Set JFXRT_HOME to the "jre" directory containing the latest build of
FX, for example:
export JFXRT_HOME=/path/to/jdk8-b78/jre
4. Run "ant" from the master directory.
-- Kevin
Tobias Bley 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