On Ubuntu 10.04, do one of the following:
For more information on how to install Java on Ubuntu, including on versions prior to 8.04, please see the Ubuntu Java Community page.
If installing from a live image, such as a live CD or USB flash drive, add the OpenJDK 6 runtime after the install:
First install the package that enables the EPEL repository:
If you want to have a head start, you can build OpenJDK 7 on OpenSolaris yourself now by following the instructions. In brief:
- On the Gnome desktop (Ubuntu):
- In the main desktop menu, choose "Add/Remove ..."
- In the "Show" toggle box, select "All Open Source Applications"
- Search for "OpenJDK"
- Select the "OpenJDK Java Runtime" (openjdk-6-jre)
- Confirm the installation of community maintained software
- Press the "Apply Changes" button
- On the KDE desktop (Kubuntu):
- In the main desktop menu, choose "Add/Remove Programs"
- In the "Adept Installer" search for "OpenJDK"
- Select the "OpenJDK Java Runtime" (openjdk-6-jre)
- Press the "Apply Changes" button
- On the command line, type:
$ sudo apt-get install openjdk-6-jre
For more information on how to install Java on Ubuntu, including on versions prior to 8.04, please see the Ubuntu Java Community page.
On Fedora 9 the OpenJDK 6 runtime and development packages are installed by default during any large-media install, such as from the Fedora 9 DVD.
If installing from a live image, such as a live CD or USB flash drive, add the OpenJDK 6 runtime after the install:
- To install with the graphical package manager, follow Applications > Add/Remove Software and use search to find the package(s) to install.
- To install from the command line:
$ su -c "yum install java-1.6.0-openjdk"
This package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.6.0-openjdk-devel package. You can also install all the OpenJDK 6 packages, including the API documentation, by using the wildcard java-1.6.0-openjdk*.
Red Hat Enterprise Linux, CentOS, etc.
The OpenJDK 6 packages are also available in EPEL, a community-run project which makes Fedora packages available to users of Red Hat Enterprise Linux 5, CentOS 5, and other RHEL 5 derivatives.First install the package that enables the EPEL repository:
$ su -c "rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm"Then add the OpenJDK 6 runtime, or the development package and related packages if so desired, by following the instructions above for Fedora.
On openSUSE 11.1, do one of the following:
- On the Gnome desktop:
- In the "Computer" desktop menu, choose "Install Software"
- Search for "OpenJDK" in the software installer application
- Select the java-1.6.0-openjdk package
- Press the "Apply" button
- On the command line, type:
$ sudo zypper install java-1.6.0-openjdk
On Debian GNU/Linux 5.0 (lenny) , do one of the following:
- On the Gnome desktop (Debian):
- In the "System" desktop menu, choose submenu "Administration"
- In the submenu, choose "Add/Remove Applications"
- In the "Show" toggle box, select "All Open Source Applications"
- Search for "OpenJDK"
- Select the "OpenJDK Java Runtime" (openjdk-6-jre)
- Confirm the installation of community maintained software
- Press the "Apply Changes" button
- On the command line, type:
$ sudo apt-get install openjdk-6-jre
We are working on putting everything in place to start providing OpenJDK 7 builds in OpenSolaris package repositories beginning in July 2009.
If you want to have a head start, you can build OpenJDK 7 on OpenSolaris yourself now by following the instructions. In brief:
- On the command line, type:
$ pfexec pkg install SUNWgmake SUNWj6dev SUNWant sunstudioexpress SUNWcups SUNWzip SUNWunzip SUNWxwhl SUNWxorg-headers SUNWaudh SUNWfreetype2
to install the build dependencies. - Set a handful of environment variables:
$ export LANG=C PATH="/opt/SunStudioExpress/bin:${PATH}" ALT_COMPILER_PATH=/opt/SunStudioExpress/bin/ ALT_DEVTOOLS_PATH=/usr/bin ALT_CUPS_HEADERS_PATH=/usr/include/
- Kick off the build:
$ gmake
- When the build finishes, the binaries will be in the
build/solaris-i586/j2sdk-image
subdirectory.
Nessun commento:
Posta un commento