Discussion:
[blfs-support] Configuring the JAVA environment
John Le Brasseur
2018-08-25 13:32:50 UTC
Permalink
Hi.
I don't know why I tried to install JAVA.
Quite difficult actually.

Page:

Beyond Linux® From Scratch - Version 2018-08-23
Chapter 13. Programming
http://www.linuxfromscratch.org/blfs/view/svn/general/ojdk-conf.html
(I actually started this a week ago when this was 8.2, it is now 8.3)

Step:
/usr/sbin/make-ca -g --force &&
ln -sfv /etc/ssl/java/cacerts.jks /opt/jdk/lib/security/cacerts

Result for most certificates:
e.g.
Certificate: SZAFIR ROOT CA2
Keyhash: fe8a2cd8
Added to GnuTLS certificate bundle.
/opt/jdk/bin/keytool: error while loading shared libraries: libjli.so:
cannot open shared object file: No such file or directory
/opt/jdk/bin/keytool: error while loading shared libraries: libjli.so:
cannot open shared object file: No such file or directory

All 'libjli.so' but I suspect a deeper problem.

Details:
ls -l /opt/OpenJDK-10.0.1+10-bin/lib/jli/
total 76
-rw-r--r-- 1 root root 75104 Apr 24 14:40 libjli.so


I believe I have set up all the dependencies.
I believe I have executed all the steps correctly
(I have also rerun some steps to check for errors.)

Clearly I have an error.

I don't actually want to ask for help because I don't think I was
concentrating hard enough and I've probably done something or omitted
something central to the process.
Nevertheless.

Is there an obvious fault here?

Many thanks.

John Le Brasseur
Paul Rogers
2018-08-26 05:16:23 UTC
Permalink
Post by John Le Brasseur
I don't know why I tried to install JAVA.
Quite difficult actually.
Yes, it *is* something of a monster, not only in its size, but in having had "too many cooks."
Post by John Le Brasseur
Beyond Linux® From Scratch - Version 2018-08-23
Chapter 13. Programming
http://www.linuxfromscratch.org/blfs/view/svn/general/ojdk-conf.html
(I actually started this a week ago when this was 8.2, it is now 8.3)
John, that was your first mistake. When you begin you must download a copy of the book for consistency throughout your build. The SVN version is very much a moving target, liable to "switch horses in midstream". You need to get svn to download a copy of what you started with. You're pretty far into it to start over, but next time go for the stable version of the book.
--
Paul Rogers
***@fastmail.fm
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL :-)
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the abo
Bruce Dubbs
2018-08-26 15:49:39 UTC
Permalink
Post by Paul Rogers
Post by John Le Brasseur
I don't know why I tried to install JAVA.
Quite difficult actually.
Yes, it *is* something of a monster, not only in its size, but in having had "too many cooks."
Post by John Le Brasseur
Beyond Linux® From Scratch - Version 2018-08-23
Chapter 13. Programming
http://www.linuxfromscratch.org/blfs/view/svn/general/ojdk-conf.html
(I actually started this a week ago when this was 8.2, it is now 8.3)
John, that was your first mistake. When you begin you must download a copy of the book for consistency throughout your build. The SVN version is very much a moving target, liable to "switch horses in midstream". You need to get svn to download a copy of what you started with. You're pretty far into it to start over, but next time go for the stable version of the book.
The entire Java section of the book was updated last night. See

http://www.linuxfromscratch.org/blfs/view/svn/general/java.html

and the following pages.

We really recommend installing in /opt as that allows you to easily
remove an incomplete or bad install and start over.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe:
John Le Brasseur
2018-08-28 10:10:52 UTC
Permalink
Thanks Paul.

I'm ok again.
Please nobody ask me what I was doing.

John Le Brasseur
Post by Paul Rogers
Post by John Le Brasseur
I don't know why I tried to install JAVA.
Quite difficult actually.
Yes, it *is* something of a monster, not only in its size, but in having
had "too many cooks."
Post by John Le Brasseur
Beyond Linux® From Scratch - Version 2018-08-23
Chapter 13. Programming
http://www.linuxfromscratch.org/blfs/view/svn/general/ojdk-conf.html
(I actually started this a week ago when this was 8.2, it is now 8.3)
John, that was your first mistake. When you begin you must download a
copy of the book for consistency throughout your build. The SVN version is
very much a moving target, liable to "switch horses in midstream". You
need to get svn to download a copy of what you started with. You're pretty
far into it to start over, but next time go for the stable version of the
book.
--
Paul Rogers
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL :-)
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
John Le Brasseur

Loading...