From: Roel Janssen <roel@gnu.org>
To: Pierre Neidhardt <mail@ambrevar.xyz>, 40234@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 [thread overview]
Message-ID: <c1297d4b39eb83c06c3dbf10bef60c93d881f4e8.camel@gnu.org> (raw)
In-Reply-To: <87wo77z6ky.fsf@ambrevar.xyz>
On Thu, 2020-03-26 at 12:41 +0100, Pierre Neidhardt wrote:
> Roel Janssen <roel@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
next prev parent reply other threads:[~2020-03-26 11:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-26 7:38 bug#40234: [java-iroha] Gradle fails with "Could not find tools.jar" Pierre Neidhardt
2020-03-26 10:22 ` Roel Janssen
2020-03-26 11:41 ` Pierre Neidhardt
2020-03-26 11:52 ` Roel Janssen [this message]
2020-03-26 12:46 ` Pierre Neidhardt
2020-03-26 13:39 ` Roel Janssen
2020-04-02 7:25 ` Pierre Neidhardt
2020-04-02 7:25 ` Pierre Neidhardt
2020-03-26 11:42 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1297d4b39eb83c06c3dbf10bef60c93d881f4e8.camel@gnu.org \
--to=roel@gnu.org \
--cc=40234@debbugs.gnu.org \
--cc=mail@ambrevar.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.