unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits.
@ 2020-04-02  8:10 Pierre Neidhardt
       [not found] ` <handler.40387.B.158581504230091.ack@debbugs.gnu.org>
  2020-12-18 11:17 ` [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Christopher Baines
  0 siblings, 2 replies; 6+ messages in thread
From: Pierre Neidhardt @ 2020-04-02  8:10 UTC (permalink / raw)
  To: 40387

* 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-18 12:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02  8:10 [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Pierre Neidhardt
     [not found] ` <handler.40387.B.158581504230091.ack@debbugs.gnu.org>
2020-04-02  8:28   ` [bug#40387] Acknowledgement ([PATCH] gnu: Set JAVA_HOME for all Java development kits.) Pierre Neidhardt
2020-04-02  8:56     ` Roel Janssen
2020-04-02  9:03       ` Pierre Neidhardt
2020-12-18 11:17 ` [bug#40387] [PATCH] gnu: Set JAVA_HOME for all Java development kits Christopher Baines
2020-12-18 12:31   ` Pierre Neidhardt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).