Difference between revisions of "OpenJDK"
From CBLFS
Jump to navigationJump to searchLine 43: | Line 43: | ||
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/bin | export ALT_HOTSPOT_IMPORT_PATH=/opt/jdk/jdk1.6.0_03/bin | ||
+ | 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 the source: | ||
patch -Np1 -i ../openjdk-b23-generic-1.patch | patch -Np1 -i ../openjdk-b23-generic-1.patch |
Revision as of 06:34, 10 November 2007
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/bin
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-1.patch
Build the package:
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. |
---|