From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35054) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJuwJ-0000Mj-8W for guix-patches@gnu.org; Thu, 02 Apr 2020 04:11:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJuwI-0000mY-2k for guix-patches@gnu.org; Thu, 02 Apr 2020 04:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJuwH-0000mS-W3 for guix-patches@gnu.org; Thu, 02 Apr 2020 04:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJuwH-0007qY-Px for guix-patches@gnu.org; Thu, 02 Apr 2020 04:11:01 -0400 Subject: [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:35033) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJuvv-0000M1-Sb for guix-patches@gnu.org; Thu, 02 Apr 2020 04:10:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJuvu-0000W9-AI for guix-patches@gnu.org; Thu, 02 Apr 2020 04:10:39 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:60571) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJuvu-0000Tj-4S for guix-patches@gnu.org; Thu, 02 Apr 2020 04:10:38 -0400 Received: from localhost.localdomain (moi44-1-78-199-129-170.fbx.proxad.net [78.199.129.170]) (Authenticated sender: mail@ambrevar.xyz) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 5B6EE100018 for ; Thu, 2 Apr 2020 08:10:34 +0000 (UTC) From: Pierre Neidhardt Date: Thu, 2 Apr 2020 10:10:17 +0200 Message-Id: <20200402081017.28866-1-mail@ambrevar.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40387@debbugs.gnu.org * gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9)[native-search-paths]: Set JAVA_HOME to "jre". This fixes issues for which the Java tooling could not find Jars, e.g. tools.jar. --- gnu/packages/java.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 4d305aac49..ca6c64fc1e 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -1078,6 +1078,10 @@ machine."))) (sha256 (base32 "0835lkw8vib1xhp8lxnybhlvzdh699hbi4mclxanydjk63zbpxk0")))))) + (native-search-paths + (list (search-path-specification + (variable "JAVA_HOME") + (files '("jre"))))) (home-page "http://icedtea.classpath.org") (synopsis "Java development kit") (description @@ -1620,6 +1624,10 @@ bootstrapping purposes.") ("lcms" ,lcms) ("zlib" ,zlib) ("gtk" ,gtk+-2))) + (native-search-paths + (list (search-path-specification + (variable "JAVA_HOME") + (files '("jre"))))) (home-page "http://icedtea.classpath.org") (synopsis "Java development kit") (description @@ -1923,6 +1931,10 @@ new Date();")) ("unzip" ,unzip) ("which" ,which) ("zip" ,zip))) + (native-search-paths + (list (search-path-specification + (variable "JAVA_HOME") + (files '("jre"))))) (home-page "https://openjdk.java.net/projects/jdk9/") (synopsis "Java development kit") (description -- 2.25.1