Differences between revisions 16 and 17
Revision 16 as of 2006-03-27 07:14:49
Size: 1741
Editor: ?JamesMontgomery
Comment:
Revision 17 as of 2006-10-24 09:46:37
Size: 1849
Editor: ?MarcusBointon
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
[apt-get] install java-package (see AptGet ), [apt-get] install java-package (see AptGet, note that java-package is not in normal sources, you need to add `contrib` to your `/etc/apt/sources.list` ),

["Java"]


JavaPackage is a utility for packaging a non-free Java™ 2 Standard Edition (J2SE) Java™ Runtime Environment (["JRE"]) or Java™ Development Kit (["JDK"]) as a Debian package. JavaPackage provides the capability to create a Debian package from a Java™ 2 distribution simply by executing

$ fakeroot make-jpkg <filename>

This program works currently with ["JRE"]s and ["JDK"]s from ?SunJava (1.3 JRE, 1.4 and 1.5), ["IBMJava"] (1.3, 1.4 and 1.5 beta) and ?BlackDownJava (1.3 and 1.4). It also works with the API Javadoc from Sun (1.3, 1.4 and 1.5).

It will make a .["deb"] out of .bin files from Sun or Blackdown and .tar.gz files from IBM, as well as the .zip files for Sun's API Javadoc.

Process

[apt-get] install java-package (see ?AptGet, note that java-package is not in normal sources, you need to add contrib to your /etc/apt/sources.list ),

fakeroot make-jpkg jre-1_5_0-linux-i586.bin

["dpkg"] -i sun-j2re1.5_1.5.0+final_i386.deb

See: http://serios.net/content/debian/java.php#gettingstarted

See also:

Configuration

If you'd like to use SUN's version as the default:

sudo update-alternatives --config java 

Choose the appropriate number for the SUN install.

Next we need to add the newly installed version to our PATH:

echo 'PATH=/usr/lib/j2re1.5-sun/jre/bin/:"${PATH}"' >> ~/.bashrc
echo 'export PATH' >> ~/.bashrc
source ~/.bashrc


CategoryJava