From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: After installing Java, what should I set JAVA_HOME to? Date: Tue, 08 Nov 2016 16:13:00 +0100 Message-ID: <87eg2m80oz.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c485J-0003a8-CU for help-guix@gnu.org; Tue, 08 Nov 2016 10:13:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c485G-0003oP-4K for help-guix@gnu.org; Tue, 08 Nov 2016 10:13:13 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c485F-0003ny-SK for help-guix@gnu.org; Tue, 08 Nov 2016 10:13:10 -0500 In-reply-to: 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: Zachary Kanfer Cc: help-guix@gnu.org 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 […] > [1] The manifest file to install javac is: > > (use-package-modules java) > > (packages->manifest > (list ;;java > icedtea > (list icedtea "jdk"))) You only need “(list icedtea "jdk")” here. The “jdk” output of the “icedtea” package includes the JRE, which is the only thing you get with the standard output of “icedtea”. Versions 6 and 7 of “icedtea” come with a build phase to generate a keystore. I’m using this successfully with “jgit”, which has to validate SSL certs. As to the value of JAVA_HOME: I only ever set it in Guix package expressions, where it is set to the directory name of the store item for the “jdk” output. ~~ Ricardo