From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zachary Kanfer Subject: Re: After installing Java, what should I set JAVA_HOME to? Date: Mon, 7 Nov 2016 23:20:54 -0500 Message-ID: References: <87r36u5rrd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fe3369a2a0c0540c27819 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3xuP-0002NM-Bi for help-guix@gnu.org; Mon, 07 Nov 2016 23:21:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3xuO-0000Mm-1t for help-guix@gnu.org; Mon, 07 Nov 2016 23:21:17 -0500 Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]:38401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c3xuN-0000MG-SJ for help-guix@gnu.org; Mon, 07 Nov 2016 23:21:15 -0500 Received: by mail-it0-x232.google.com with SMTP id q124so178490361itd.1 for ; Mon, 07 Nov 2016 20:21:15 -0800 (PST) In-Reply-To: <87r36u5rrd.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Chris Marusich Cc: help-guix@gnu.org --001a113fe3369a2a0c0540c27819 Content-Type: text/plain; charset=UTF-8 I don't want to use Guix to build my project because I'm developing it. So, for example, I want to run tests often, and that uses Gradle. I want to integrate a build into my editor. I want to make a Guix manifest that can set up a machine for other people to use, and they don't want to use Guix for day-to-day development. I am not sure what trust store is being used. I'm also not sure how to check what trust store is being used. So when using Guix, what should $JAVA_HOME be set to? Has anyone else done a Java setup using Guix? On Nov 2, 2016 2:18 AM, "Chris Marusich" wrote: > Hi Zachary, > > Zachary Kanfer writes: > > > But I started the gradle quickstart guide, and I've started running > > into problems. Right now I have $JAVA_HOME set to > > /home/zck/.guix-profile/, but I am suspecting that is not right. When > > I run `./gradlew clean`, I get the following error: > > > > zck@zck-laptop:~/code/gradle-test$ ./gradlew clean > > Downloading > > https://services.gradle.org/distributions/gradle-3.0-bin.zip > > > > Exception in thread "main" javax.net.ssl.SSLException: > > java.lang.RuntimeException: Unexpected error: > > java.security.InvalidAlgorithmParameterException: the trustAnchors > > parameter must be non-empty > > > > (further stacktrace elided) > > Perhaps Java cannot find/access the truststore (or can access it but > found nothing in it)? Do you know what trust store is being used? > Where is it, and what are its permissions? > > > Further supporting my suspicion that JAVA_HOME shouldn't be the guix > > profile is that I would think either guix or java should manage the > > directory, but not both. > > I think a bigger question here is why do you need to use Gradle directly > to build your project? What's stopping you from using Guix to do it? > > -- > Chris > --001a113fe3369a2a0c0540c27819 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I don't want to use Guix to build my pr= oject because I'm developing it. So, for example, I want to run tests o= ften, and that uses Gradle. I want to integrate a build into my editor. I w= ant to make a Guix manifest that can set up a machine for other people to u= se, and they don't want to use Guix for day-to-day development.

I= am not sure what trust store is being used. I'm also not sure how to c= heck what trust store is being used.

So when using Guix, what sho= uld $JAVA_HOME be set to? Has anyone else done a Java setup using Guix?
=


On Nov 2, 2016 2:= 18 AM, "Chris Marusich" <cmmarusich@gmail.com> wrote:
Hi Zachary,

Zachary Kanfer <z= kanfer@gmail.com> writes:

> But I started the gradle quickstart guide, and I've started runnin= g
> into problems. Right now I have $JAVA_HOME set to
> /home/zck/.guix-profile/, but I am suspecting that is not right. When<= br> > I run `./gradlew clean`, I get the following error:
>
> zck@zck-laptop:~/code/gradle-test$ ./gradlew clean
> Downloading
> https://services.gradle.org/di= stributions/gradle-3.0-bin.zip
>
> Exception in thread "main" javax.net.ssl.SSLException:
> java.lang.RuntimeException: Unexpected error:
> java.security.InvalidAlgorithmParameterException: the trustAnchor= s
> parameter must be non-empty
>
> (further stacktrace elided)

Perhaps Java cannot find/access the truststore (or can access it but
found nothing in it)?=C2=A0 Do you know what trust store is being used?
Where is it, and what are its permissions?

> Further supporting my suspicion that JAVA_HOME shouldn't be the gu= ix
> profile is that I would think either guix or java should manage the > directory, but not both.

I think a bigger question here is why do you need to use Gradle directly to build your project?=C2=A0 What's stopping you from using Guix to do = it?

--
Chris
--001a113fe3369a2a0c0540c27819--