From: zloster <more@edno.moe>
To: Ricardo Wurmus <rekado@elephly.net>, Zachary Kanfer <zkanfer@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: After installing Java, what should I set JAVA_HOME to?
Date: Thu, 1 Dec 2016 00:01:03 +0200 [thread overview]
Message-ID: <20c1854d-01a1-b6d1-5690-6265e02e513f@edno.moe> (raw)
In-Reply-To: <8760n82dte.fsf@elephly.net>
[-- Attachment #1: Type: text/plain, Size: 2136 bytes --]
On 28.11.2016 10:45, Ricardo Wurmus wrote:
> Zachary Kanfer <zkanfer@gmail.com> writes:
>
>> I want Guix to be widely adopted, because I think it's a really cool piece
>> of software that deserves more support. To that end, I want to write about
>> how high switching costs "use Guix for everything" has, and how much I
>> think Guix adoption will be harmed by this advice.
Hi,
I've tried to describe what kind of problem mr. Kanfer is hitting here:
https://lists.gnu.org/archive/html/help-guix/2016-11/msg00035.html I've
also described a possible workaround.
I'll try to add some more explanation.
> That said, I had no problems *using* the Java toolchain for compiling
> Java code or for running pre-compiled code from third-party jars.
>
Here I'll try again to demonstrate the problem (the big screenshot
below). On the left I'm starting with installed packages:
guix package --list-installed
There is icedtea-3.1.0
I call `java -version` and everything is OK.
I call `which java` to get the location of java executable. It's in my
profile.
On the right I'm listing /lib/security/java.security file.
There is a line starting with `security.provider.9` and it tells the JVM
to go to ${java.home}/lib/security/nss.cfg for NSS configuration and
there is NO `nss.cfg` in the same directory. This is the problem.
The value of ${java.home} is `.home` which I believe doesn't exist (on
the right last lines).
On the right I also check the two directories in the store where
`nss.cfg` file exists. It is in two directories which contain the
JRE(Java Runtime Environment) portion of the JDK. Their
`jre/lib/security/java.security` files again contain
`security.provider.9=sun.security.pkcs11.SunPKCS11
${java.home}/lib/security/nss.cfg but in this case they have a `nss.cfg`
in the same directory and it is pointing to NSS installations in the store.
With this configuration `mvn` and the other tools that need to perform
cryptography operations will fail. My case was binary distribution of
Tomcat failing to start with similar exception about SSL. With the
described workaround I was able to start Tomcat.
My GuixSD
[-- Attachment #2.1: Type: text/html, Size: 3115 bytes --]
[-- Attachment #2.2: 2016-11-29-164530_1920x1080_scrot.png --]
[-- Type: image/png, Size: 92486 bytes --]
next prev parent reply other threads:[~2016-11-30 22:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-02 4:38 After installing Java, what should I set JAVA_HOME to? Zachary Kanfer
2016-11-02 6:18 ` Chris Marusich
2016-11-08 4:20 ` Zachary Kanfer
2016-11-08 12:31 ` Ludovic Courtès
2016-11-08 15:15 ` Ricardo Wurmus
2016-11-09 7:01 ` Chris Marusich
2016-11-09 21:22 ` Hartmut Goebel
2016-11-28 5:15 ` Zachary Kanfer
2016-11-28 8:45 ` Ricardo Wurmus
2016-11-30 22:01 ` zloster [this message]
2016-12-01 8:59 ` Ricardo Wurmus
2016-11-28 9:59 ` Ludovic Courtès
2016-11-28 17:08 ` Hartmut Goebel
2016-11-29 2:34 ` Chris Marusich
2016-11-08 15:13 ` Ricardo Wurmus
-- strict thread matches above, loose matches on Subject: below --
2016-11-12 18:48 Radoslav Petrov
2016-12-01 2:18 ` Chris Marusich
2016-12-01 13:06 ` Ludovic Courtès
2016-12-01 13:07 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20c1854d-01a1-b6d1-5690-6265e02e513f@edno.moe \
--to=more@edno.moe \
--cc=help-guix@gnu.org \
--cc=rekado@elephly.net \
--cc=zkanfer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).