GNU bug report logs - #40234
[java-iroha] Gradle fails with "Could not find tools.jar"

Previous Next

Package: guix;

Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>

Date: Thu, 26 Mar 2020 07:39:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Roel Janssen <roel <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>, 40234 <at> debbugs.gnu.org
Subject: bug#40234: [java-iroha] Gradle fails with "Could not find tools.jar"
Date: Thu, 26 Mar 2020 12:52:32 +0100
On Thu, 2020-03-26 at 12:41 +0100, Pierre Neidhardt wrote:
> Roel Janssen <roel <at> gnu.org> writes:
> 
> > The "tools.jar" is only in de icedtea:jdk output.
> > You might also need to set environment variable JAVA_HOME to the Guix
> > profile
> > root that contains icedtea:jdk.
> 
> Thanks, this is probably related!
> 
> However
> 
> --8<---------------cut here---------------start------------->8---
> env JAVA_HOME=/home/ambrevar/.guix-extra-profiles/dev/dev ./gradlew jar
> --8<---------------cut here---------------end--------------->8---
> 
> fails with the same error.
> 

Uh, I looked through one of my Java-related packages and found this snippet:

----------
;; Set JAVA_HOME to help maven find the JDK.
(setenv "JAVA_HOME" (string-append (assoc-ref inputs "icedtea")
                                   "/jre"))
----------

So perhaps JAVA_HOME needs to point to <profile-root>/jre.  (Sorry for the
previous suggestion..)

I'm not sure why I added this snippet though, but perhaps it's worth a try.

Kind regards,
Roel Janssen





This bug report was last modified 5 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.