Difference between revisions of "OpenJDK"
From CBLFS
Jump to navigationJump to search(4 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
|-valign="top" | |-valign="top" | ||
!Required patches: | !Required patches: | ||
− | |http://svn.cross-lfs.org/svn/repos/patches/openjdk/openjdk-b23-generic- | + | |http://svn.cross-lfs.org/svn/repos/patches/openjdk/openjdk-b23-generic-2.patch |
|} | |} | ||
Line 29: | Line 29: | ||
Create necessary symbolic links: | Create necessary symbolic links: | ||
− | ln -s /bin/find /usr/bin/find | + | ln -s /bin/find /usr/bin/find && |
− | ln -s /bin/head /usr/bin/head | + | ln -s /bin/head /usr/bin/head && |
ln -s /bin/test /usr/bin/test | ln -s /bin/test /usr/bin/test | ||
Line 37: | Line 37: | ||
Set additional variables (adjust paths as needed): | Set additional variables (adjust paths as needed): | ||
− | export ALT_BOOTDIR=/opt/jdk/jdk1.6.0_03 | + | export ALT_BOOTDIR=/opt/jdk/jdk1.6.0_03 && |
− | export ANT_HOME=/opt/ant | + | export ANT_HOME=/opt/ant && |
− | export FINDBUGS_HOME=/opt/findbugs | + | export FINDBUGS_HOME=/opt/findbugs && |
− | export ALT_JDK_IMPORT_PATH=/opt/jdk/jdk1.6.0_03 | + | export ALT_JDK_IMPORT_PATH=/opt/jdk/jdk1.6.0_03 && |
− | export ALT_HOTSPOT_IMPORT_PATH=/opt/jdk/jdk1.6.0_03 | + | export ALT_HOTSPOT_IMPORT_PATH=/opt/jdk/jdk1.6.0_03 |
Install Binary Plug (You will be required to accept the license agreement): | Install Binary Plug (You will be required to accept the license agreement): | ||
− | mv jdk-7-ea-plug-b23-linux-amd64-30_oct_2007.jar jdk-plug.bin | + | mv jdk-7-ea-plug-b23-linux-amd64-30_oct_2007.jar jdk-plug.bin && |
− | chmod +x jdk-plug.bin | + | chmod +x jdk-plug.bin && |
./jdk-mod.bin (Install in /opt/java) | ./jdk-mod.bin (Install in /opt/java) | ||
Patch the source: | Patch the source: | ||
− | patch -Np1 -i ../openjdk-b23-generic- | + | patch -Np1 -i ../openjdk-b23-generic-2.patch |
Build the package: | Build the package: | ||
− | cd control/make | + | . jdk/make/jdk_generic_profile.sh && |
+ | cd control/make && | ||
make | make | ||
Install the package: | Install the package: | ||
− | cd ../build/linux-$arch/j2sdk-image | + | cd ../build/linux-$arch/j2sdk-image && |
cp -vRP bin include jre lib man demo /opt/java | cp -vRP bin include jre lib man demo /opt/java | ||
chmod | chmod | ||
Line 77: | Line 78: | ||
| is a (mostly) GPLed version of Sun's [[JDK]]. | | is a (mostly) GPLed version of Sun's [[JDK]]. | ||
|} | |} | ||
+ | |||
+ | [[Category:Programming]] |
Latest revision as of 16:01, 19 March 2009
Contents
Introduction to OpenJDK
OpenJDK is the Sun's GPL release of JDK. Due to legal concerns, not all of JDK has been released under GPL, therefore either Sun's Binary Plugs or Redhat's IcedTea must also be installed. Installation also requires a binary copy JDK 6.0, which can be found at http://java.sun.com/javase/downloads/index.jsp (seeJDK for installation instructions).
Project Homepage: http://openjdk.java.net/
Dependencies
Non-Multilib
Create necessary symbolic links:
ln -s /bin/find /usr/bin/find && ln -s /bin/head /usr/bin/head && ln -s /bin/test /usr/bin/test
Set PATH variable to include JDK6.0 and Apache Ant binaries (adjust paths as needed):
export PATH=$PATH:/opt/jdk/jdk1.6.0_03/bin:/opt/ant/bin
Set additional variables (adjust paths as needed):
export ALT_BOOTDIR=/opt/jdk/jdk1.6.0_03 && export ANT_HOME=/opt/ant && export FINDBUGS_HOME=/opt/findbugs && export ALT_JDK_IMPORT_PATH=/opt/jdk/jdk1.6.0_03 && export ALT_HOTSPOT_IMPORT_PATH=/opt/jdk/jdk1.6.0_03
Install Binary Plug (You will be required to accept the license agreement):
mv jdk-7-ea-plug-b23-linux-amd64-30_oct_2007.jar jdk-plug.bin && chmod +x jdk-plug.bin && ./jdk-mod.bin (Install in /opt/java)
Patch the source:
patch -Np1 -i ../openjdk-b23-generic-2.patch
Build the package:
. jdk/make/jdk_generic_profile.sh && cd control/make && make
Install the package:
cd ../build/linux-$arch/j2sdk-image && cp -vRP bin include jre lib man demo /opt/java chmod
Multilib
Contents
Installed Programs: | |
---|---|
Installed Libraries: | |
Installed Directories: |
Short Descriptions
OpenJDK | is a (mostly) GPLed version of Sun's JDK. |
---|