Installing JRE in Mandriva

source : http://www.java.com

Tips

Download Linux RPM (self-extracting file) from HERE or HERE . filesize is 19.38 MB.

After you download it follow these instructions:

1. At the terminal: Type:
su


2. Enter the root password.


3. Change to the directory in which you want to install. Type:
cd <dir name>
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java

Note about root access: To install Java in a system-wide location such as/usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install Java in your home directory or a subdirectory for which you have write permissions.


4. Change the permission of the file you downloaded to be executable. Type:
chmod a+x jre-6u<version>-linux-i586-rpm.bin


5. Start the installation process. Type:
./jre-6u<version>-linux-i586-rpm.bin

This displays a binary license agreement. Read through the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.

6. The installation file creates jre-6u<version>-linux-i586.rpm file in the current directory.


7. Run the RPM command at the terminal to install the packages. Type:
rpm -iv jre-6u<version>-linux-i586.rpm


8. Java is installed in jre1.6.0_<version> sub-directory under the current directory. In this case, Java is installed in the /usr/java/jre1.6.0_<version> directory. Verify that the jre1.6.0_<version> sub-directory is listed under the current directory. Type:
ls

your output would resemble the one below .

The installation is now complete. Go to the Enable and Configure section.

About these ads

One comment on “Installing JRE in Mandriva

  1. Hi :
    I’m using Mandriva 2011, I’ve downloaded jre-7u10-linux-i586.rpm/jre-6u38-linux-i586.rpm when I try chmod and then “./…..” to install it I get this message for both:
    [root@....... java]# chmod a+x jre-6u38-linux-i586-rpm.bin
    [root@........ java]# ./jre-6u38-linux-i586-rpm.bin
    Unpacking…
    Checksumming…
    Extracting…
    UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
    replace jre-6u38-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
    inflating: jre-6u38-linux-i586.rpm
    rpmdb: unable to join the environment
    error: db_init:db3.c:1009: dbenv->open(11): Resource temporarily unavailable
    error: cannot open Packages(0) index: Resource temporarily unavailable(11)
    DB: Berkeley DB 5.1.25: (January 28, 2011)
    error: cannot open Packages database in /var/lib/rpm
    I’m running as root, thus I have all the required privileges to install.
    my java version is: java version “1.6.0_29″
    Am I missing any point during the process?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s