source: general/prog/ojdk-conf.xml@ 2198a32

10.0 10.1 11.0 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind ken/refactor-virt lazarus perl-modules qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 2198a32 was 2198a32, checked in by DJ Lucas <dj@…>, 4 years ago

Rename make-ca page.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19860 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ojdk-conf" xreflabel="Configuring the JAVA environment">
9 <?dbhtml filename="ojdk-conf.html"?>
10
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14 </sect1info>
15
16 <title>Configuring the JAVA environment</title>
17
18 <para>
19 After the package installation is complete, the next step is to make sure
20 that the system can properly find the files. If you set up your login
21 scripts as recommended in <xref linkend='postlfs-config-profile'/>, update
22 the environment by creating the <filename>openjdk.sh</filename> script,
23 as the <systemitem class="username">root</systemitem> user:
24 </para>
25
26<screen role="root"><userinput>cat &gt; /etc/profile.d/openjdk.sh &lt;&lt; "EOF"
27<literal># Begin /etc/profile.d/openjdk.sh
28
29# Set JAVA_HOME directory
30JAVA_HOME=/opt/jdk
31
32# Adjust PATH
33pathappend $JAVA_HOME/bin
34
35# Add to MANPATH
36pathappend $JAVA_HOME/man MANPATH
37
38# Auto Java CLASSPATH: Copy jar files to, or create symlinks in, the
39# /usr/share/java directory. Note that having gcj jars with OpenJDK 8
40# may lead to errors.
41
42AUTO_CLASSPATH_DIR=/usr/share/java
43
44pathprepend . CLASSPATH
45
46for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do
47 pathappend $dir CLASSPATH
48done
49
50for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do
51 pathappend $jar CLASSPATH
52done
53
54export JAVA_HOME
55unset AUTO_CLASSPATH_DIR dir jar
56
57# End /etc/profile.d/openjdk.sh</literal>
58EOF</userinput></screen>
59
60 <para>
61 For allowing <command>mandb</command> to include the OpenJDK man pages
62 in its database, issue, as the <systemitem class="username">root
63 </systemitem> user:
64 </para>
65
66<screen role="root"><userinput>cat &gt;&gt; /etc/man_db.conf &lt;&lt; "EOF" &amp;&amp;
67<literal># Begin Java addition
68MANDATORY_MANPATH /opt/jdk/man
69MANPATH_MAP /opt/jdk/bin /opt/jdk/man
70MANDB_MAP /opt/jdk/man /var/cache/man/jdk
71# End Java addition</literal>
72EOF
73
74mkdir -p /var/cache/man
75mandb -c /opt/jdk/man</userinput></screen>
76
77 <para>
78 The installation of the JRE certificate authority bundle
79 is described in the <xref linkend="ojdk-certs"/> section.
80 </para>
81
82</sect1>
Note: See TracBrowser for help on using the repository browser.