Changeset 58cba7f0 for general/prog/openjdk.xml
- Timestamp:
- 03/04/2015 10:17:44 PM (9 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.7, 7.8, 7.9, 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
- Children:
- 80dbc4c8
- Parents:
- 8ddea36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/openjdk.xml
r8ddea36 r58cba7f0 454 454 chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen> 455 455 456 <para> 457 There are now two <application>OpenJDK</application> SDKs installed 458 in <filename class="directory">/opt</filename>. You should decide on 459 which one you would like to use as the default. Normally, you would opt 460 for the just installed <application>OpenJDK</application>. If so, do 461 the following as the <systemitem class="username">root</systemitem> 462 user: 463 </para> 464 465 <screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version; /opt/jdk</userinput></screen> 466 456 467 <para>If desired, you may install a .desktop file corresponding to an entry 457 468 in a desktop menu for <command>policytool</command>. First, you need to … … 575 586 <title>Configuration Information</title> 576 587 577 <para> 578 There are now two <application>OpenJDK</application> SDKs installed 579 in <filename class="directory">/opt</filename>. You should decide on 580 which one you would like to use as the default. For example if you 581 decide to use the precompiled <application>OpenJDK</application>, do 582 the following as the <systemitem class="username">root</systemitem> 583 user: 584 </para> 585 586 <screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version;-bin /opt/jdk</userinput></screen> 587 588 <para>The information below assumes your system is set up using the 589 instructions found in <quote><xref 590 linkend="postlfs-config-profile"/></quote>. You may need to extract the 591 relevant information below and incorporate it into your system's startup 592 files if your system is set up differently.</para> 593 594 <para>Add the following <filename>openjdk.sh</filename> shell startup 595 file to the <filename>/etc/profile.d</filename> directory with the 596 following commands as the <systemitem class="username">root</systemitem> 597 user:</para> 598 599 <screen role="root"><userinput>cat > /etc/profile.d/openjdk.sh << "EOF" 600 <literal># Begin /etc/profile.d/openjdk.sh 601 602 # Set JAVA_HOME directory 603 JAVA_HOME=/opt/jdk 604 605 # Set ANT_HOME directory 606 ANT_HOME=/opt/ant 607 608 # Adjust PATH 609 pathappend $JAVA_HOME/bin PATH 610 pathappend $ANT_HOME/bin PATH 611 612 # Auto Java CLASSPATH 613 # Copy jar files to, or create symlinks in this directory 614 615 AUTO_CLASSPATH_DIR=/usr/share/java 616 617 pathprepend . CLASSPATH 618 619 for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do 620 pathappend $dir CLASSPATH 621 done 622 623 for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do 624 pathappend $jar CLASSPATH 625 done 626 627 export JAVA_HOME ANT_HOME CLASSPATH 628 unset AUTO_CLASSPATH_DIR dir jar 629 630 # End /etc/profile.d/openjdk.sh</literal> 631 EOF</userinput></screen> 632 633 <para>Finally, add the man pages to <application>man_db</application>'s 634 configuration. As the <systemitem class="username">root</systemitem> 635 user:</para> 636 637 <screen role="root"><userinput>cat >> /etc/profile.d/extrapaths.sh << "EOF" && 638 <literal># Begin Java addition 639 pathappend /opt/jdk/man MANPATH 640 # End Java addition</literal> 641 EOF 642 643 644 cat >> /etc/man_db.conf << "EOF" && 645 <literal># Begin Java addition 646 MANDATORY_MANPATH /opt/jdk/man 647 MANPATH_MAP /opt/jdk/bin /opt/jdk/man 648 MANDB_MAP /opt/jdk/man /var/cache/man/jdk 649 # End Java addition</literal> 650 EOF 651 652 mkdir -p /var/cache/man 653 mandb -c /opt/jdk/man</userinput></screen> 588 <para>Normally, the JAVA environment has been configured after installing 589 the binary version, and can be used with the just built package as well. 590 Review <xref linkend="ojdk-conf"/> in case you want to modify 591 something.</para> 654 592 655 593 <para>To test if the man pages are correctly installed, issue … … 659 597 </sect3> 660 598 661 <sect3 id='ojdk-certs' >599 <sect3 id='ojdk-certs' xreflabel='JRE Certificate Authorithy Certificates'> 662 600 <title>Install or update the JRE Certificate Authority Certificates 663 601 (cacerts) file</title>
Note:
See TracChangeset
for help on using the changeset viewer.