Solved

Linux, cant find installation of java

Posted on 2013-12-04
2
385 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
The better OS Architecture 13 108
RHEL installation problems on HP Proliant DL 360 G6 server 20 148
can i read my emails on lamp ftp 4 70
Logrotate Every Saturday 5 43
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,…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 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