javaantd2rq

Compiling D2RQ with ant


D2RQ is shipped with an ant build script, which works fine. I can compile on a linux box, where the default ant version is 1.8.2 and the javac version is 1.7.0_121.

I want to compile D2RQ with Java 8. I've downloaded ant 1.10, which requires Java 8 2.

Then I run into some issues:

I don't even know if -d is a D2RQ compile option or a valid java flag.

Is there anything else I should be trying?!


Solution

  • The executable attribute of <javac> must point to the javac executable, not java. Note the "c" at the end of javac.

    The following must be changed to point to javac:

    executable="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-0.b15.el6_8.x86_64/jre/bin/java"
    

    Where javac lives depends on your Linux distribution.