?
Solved

Java jre1.5.0_07 on Centos 4.1

Posted on 2006-06-22
5
Medium Priority
?
794 Views
Last Modified: 2013-11-13
Hi I'm going crazy here.  I need to install jre1.5 for an app I want to use.  This is for an asterisk box.  I dont need it for firefox or other web browser.

I did a Yum install of the jpackage (I dont even know what that means)  it installed 1.4.X

I can from the command line do
java -version and get the version.

So that yum installer seems to work great.

I tried to use the self extracting .bin and the RPM from the Sun site.  Both ways seemed to go through the install fine but the only way I can get it to work is to call it through the full path... /usr/java/jre1.5X/bin/java -version

So my question is:  Step by step...
How do I uninstall 1.4
make it so when I do which java it uses 1.5.

thanks
0
Comment
Question by:livegirllove
[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
  • 3
5 Comments
 
LVL 12

Assisted Solution

by:Heem14
Heem14 earned 1000 total points
ID: 16963618
try:

rpm -qa | grep -i java

you should be able to find the name of the 1.4 java rpm..

then do rpm -e name of java 1.4 package

then simply either add /usr/java/jre1.5x/bin to you path, or move the /usr/java/jre........ folder to someplace that is in your path. you may have to set some environment variables like JAVA_HOME JRE_HOME JAVA_ROOT

export 'JAVA_HOME'=/usr/java/jre1.5x/bin

or whatever you move it to if you move it.
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 1000 total points
ID: 16963620
First remove java 1.4:

yum remove jpackage


Next ensure that java 1.5 is in your path:

Edit your .bashrc and add the line:

PATH=$PATH:/usr/java/jre1.5X/bin/

then:

. ~/.bashrc

to update your PATH

This will add the directory with all the binaries to you PATH, so you should now be able to run:

java -version

should then give you 1.5 :)

(   (()
(`-' _\
 ''  ''
0
 
LVL 1

Author Comment

by:livegirllove
ID: 16964905
I used a little of both.
I didnt know how to get the yum package name to uninstall so I used the RPM uninstall.

added the path to bashrc and java - version finally works

thanks
0
 
LVL 1

Author Comment

by:livegirllove
ID: 16964950

error: Failed dependencies:
        jre >= 1.5 is needed by asterfax-1.0-rc2.i386

well maybe I spoke to soon
0
 
LVL 1

Author Comment

by:livegirllove
ID: 16965193
nevermind I got it.


0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
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…
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.
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

752 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