diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 9e632f3fbf5cc07eb8bd779346a33d60687a783a..e4d0afb3986452e29631b61004d99ede554f1f48 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -159,8 +159,8 @@ (define-public ant (alist-replace 'build (lambda _ - (setenv "JAVA_HOME" - (assoc-ref %build-inputs "icedtea6")) + (setenv "JAVA_HOME" (string-append (assoc-ref %build-inputs "gcj") + "/lib/jvm")) ;; Disable tests to avoid dependency on hamcrest-core, which needs ;; Ant to build. This is necessary in addition to disabling the ;; "check" phase, because the dependency on "test-jar" would always @@ -174,7 +174,7 @@ (define-public ant 'configure (alist-delete 'install %standard-phases)))))) (native-inputs - `(("icedtea6" ,icedtea6 "jdk"))) + `(("gcj" ,gcj))) (home-page "http://ant.apache.org") (synopsis "Build tool for Java") (description