OpenJDK

From CBLFS
Revision as of 08:25, 10 November 2007 by Nukular (talk | contribs)
Jump to navigationJump to search
Download Source: http://www.java.net/download/openjdk/jdk7/promoted/b23/openjdk-7-ea-src-b23-30_oct_2007.zip
Download Binary Plug: http://www.java.net/download/openjdk/jdk7/promoted/b23/jdk-7-ea-plug-b23-linux-amd64-30_oct_2007.jar
Required patches: http://svn.cross-lfs.org/svn/repos/patches/openjdk/openjdk-b23-generic-1.patch

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.