source: general/prog/ojdk-conf.xml@ 77a6d25

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 77a6d25 was 77a6d25, checked in by Igor Živković <igor@…>, 8 years ago

misspellings

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

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[58cba7f0]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>
[77a6d25]78 The installation of the JRE Certificate Authority Certificates (cacerts)
[58cba7f0]79 is described in the <xref linkend="ojdk-certs"/> section.
80 If you are using the binary version, those certificates may already be
81 installed.
82 </para>
83
84</sect1>
Note: See TracBrowser for help on using the repository browser.