From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GItgLq4nJF+LHAAA0tVLHw (envelope-from ) for ; Fri, 31 Jul 2020 14:16:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QCZlKq4nJF8+IQAAB5/wlQ (envelope-from ) for ; Fri, 31 Jul 2020 14:16:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B94E29400BF for ; Fri, 31 Jul 2020 14:16:13 +0000 (UTC) Received: from localhost ([::1]:35164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1VpU-0003WJ-Nu for larch@yhetil.org; Fri, 31 Jul 2020 10:16:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1VpK-0003V7-QI for bug-guix@gnu.org; Fri, 31 Jul 2020 10:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1VpK-0005nB-Fb for bug-guix@gnu.org; Fri, 31 Jul 2020 10:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k1VpK-0005QW-Bo for bug-guix@gnu.org; Fri, 31 Jul 2020 10:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42423: icedtea: JAVA_HOME Resent-From: Christopher Howard Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 31 Jul 2020 14:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42423 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Michael Rohleder Received: via spool by 42423-submit@debbugs.gnu.org id=B42423.159620490520761 (code B ref 42423); Fri, 31 Jul 2020 14:16:02 +0000 Received: (at 42423) by debbugs.gnu.org; 31 Jul 2020 14:15:05 +0000 Received: from localhost ([127.0.0.1]:38349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1VoP-0005On-HF for submit@debbugs.gnu.org; Fri, 31 Jul 2020 10:15:05 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:21134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1VoL-0005Nt-7V for 42423@debbugs.gnu.org; Fri, 31 Jul 2020 10:15:04 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id C970FDE8; Fri, 31 Jul 2020 16:14:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:content-type:content-type :references:in-reply-to:date:date:reply-to:from:from:subject :subject:message-id:received:received:received; s=dkim20160331; t=1596204893; x=1598019294; bh=WFkVEYfyDj0AQm2GVDf5LPEemZ0NJw2d hoCo1yzmTOE=; b=N/y9WiJ/RkZjUeqhDI76NveP7VYnR8ZvB+N9cx1DvoFjr1eJ Jafeh6T5n8TPIt19gY8XZSzAP3mNVGqw82bIriOZrpAgVs/prvkWXYJFmhdhDldf ZvVxrENQk2Ye7h0vVABvom5XTk8/lESmE4hgpHcdZagWRGrbBBCj7Q/x3kMp7Wm3 cXJMXwk81fa6XEHY7aKnQAa+HFFRU5bh8JXgM++h9xJBSSH2lF5GRdwZn9IkltAf +pczSTUzweMgaGL9PANDu45IiegcnptZl821Kfk6nnVZbLPRiUGlb8mLwgNVmt2b SB5AklALG394P78T01r6ZyaRHBnIoO1iiY0bRkpGRbsJlDhxBkpohQkkea+j51gh ItmGpw0PZIeyE01M0sxF8N1M2OCtR+GvdjCBDqR0gceQgF4OqHgVMe2xijydwzSW UmUVZWPn2KrzOD/xLykRq0sMw7Udtgqwe1E3jyTkvc00OkWZjtVk+L0vCj138bI8 sahqe63LwPSuc+mluVZqDfRQnRZKxdlwrNJY2QBWUUWtz7HvrUniC/i/bQiB2Cgc KrKvjdBSc1pEulFxE8ft55yo8aZIedk5jO/QAG/Qt9yRADI++G46/CNQ0aXcQ3YV b/RuLGUkE0IHPkZCKp7C35QZIs7PU8YPnekYTh9/JaF36nkBCuxCmOjL4oo= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Score: -1.9 Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1a4UbmGy9umF; Fri, 31 Jul 2020 16:14:53 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 1CC77355; Fri, 31 Jul 2020 16:14:52 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id B7B3CA9F; Fri, 31 Jul 2020 16:14:52 +0200 (CEST) Message-ID: <939e8f05889aebe8be0aa2dd51f356a260d7ecc3.camel@qlfiles.net> From: Christopher Howard Date: Fri, 31 Jul 2020 06:14:48 -0800 In-Reply-To: <873657ewfb.fsf@rohleder.de> References: <873657ewfb.fsf@rohleder.de> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: christopher@librehacker.com Cc: 42423@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=kolabnow.com header.s=dkim20160331 header.b=N/y9WiJ/; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: EMQEjQ3XQzV+ Hi, I am open to learning more and to guix developer wisdom. I don't quite understand your argument, though — I wouldn't think this would be any more difficult a question than deciding what version of the java binary would show up in your profile: you would only select one version in a profile. If you need to work with multiple versions (not talking about dependencies) you would create multiple profiles, or multiple manifest files to use with guix environment. I would assume if we are talking about guix package dependencies, you are relying on the direct paths. But practical case here is if you just download some Java code and run "ant build" or "ant run": that won't work unless "JAVA_HOME" is defined, which is a bother to figure out yourself every time you want to update your profile. This is what I have to do to get arduino-ide running (as well as running patchelf on the generated binaries, but that is another story...) -- Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social: https://gnusocial.club/librehacker gpg: ADDEAADE5D607C8D (keys.gnupg.net) On Fri, 2020-07-31 at 13:49 +0200, Michael Rohleder wrote: > Hi Christopher, > > Christopher Howard writes: > > Hi, I'm not going to pretend to be a Java expert, but I was trying > > to > > build and run a Java application, and had to set JAVA_HOME > > manually. It > > is my understanding from my research[1] that applications often > > will > > want JAVA_HOME set to the path to the java install directory. It > > would > > seem like it would be useful if Guix set that as well for the > > icedtea > > and icedtea:jdk package. > > > > If there are good reasons for that not to be, perhaps more > > knowledgeable individuals will explain it. > > > > One part I'm not quite sure about is what JAVA_HOME would be set to > > if > > both icedtea and icedtea:jdk were installed. > > I dont think this is a good idea (or even possible?): > > From a Developer POV I think its pretty common to have many jdk's > installed > (8,11,14 sometimes even 7). To what should JAVA_HOME be set/defaults > in this > case? > > I dont know a distribution which sets JAVA_HOME (per default) and I > think its much better to let the user or sysadmin decide which one is > best...