Solved

Linux, cant find installation of java

Posted on 2013-12-04
2
377 Views
Last Modified: 2013-12-05
While I am still trying to find out how to install java 1.7 in 32 bit mode
   (with a yum install)

In parallel, I am trying to install a 32 bit version without the yum

rpm -Uvh jre-7u45-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:jre                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        localedata.jar...
        jfxrt.jar...
        plugin.jar...
        javaws.jar...
        deploy.jar...

Open in new window


My java still thinks he is 64 bit

OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Open in new window



So I try the alternatives command

So he sees the two previously installed 64 bit versions

There are 2 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
   2           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Open in new window


So how do I tell if the java 32 bit was installed

and how do I tell it to use the 32 bit as primary

Thanks
0
Comment
Question by:Los Angeles1
2 Comments
 
LVL 19

Assisted Solution

by:xterm
xterm earned 250 total points
ID: 39696628
If you don't need the 64-bit versions, uninstall them as follows:

rpm -e java-1.6.0-openjdk.x86_64
rpm -e java-1.7.0-openjdk.x86_64


Then try the alternatives command again.

BTW, you can find the name of the package that owns a binary by doing:

rpm -ql /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 250 total points
ID: 39696741
If you do an rpm -qpl jre-7u45-linux-i586.rpm, it will tell you where it put everything
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question