• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 520
  • Last Modified:

Java Install on Red Hat Linux

Hello,

 I am on the process of doing a fresh install of Oracle 9i DB on Red Hat Enterprise 3 (ES).
I downloaded java JDK 1.3.1 09 to a  OraHome directory.

When I type which java.......>I get no java installed.

I included the /usr/sbin folder where I ran the binary Java file and I get that the Java RPM file is installed.
I included an entry for the /usr/sbin folder in my .bash_profile file.

How can I resolve this ?

PT
0
ptreves
Asked:
ptreves
  • 5
  • 3
1 Solution
 
Jase-CoderCommented:
do

find / | grep "java" > Found

to see where it is installed because it may be somwhere else.
My java path is

/usr/lib/java
0
 
ptrevesAuthor Commented:
Hello,

The find command can be long to run...........
By default, where should it install itself ?

PT
0
 
ptrevesAuthor Commented:
Hello again,

I ran the find form the root and oracle user, it never told me Found.........
However the RPM file says already installed ???

What now ?

PT
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jlevieCommented:
If rpm says it's installed you should be able to use 'rpm -q --list java' to find out were all the files are.
0
 
ptrevesAuthor Commented:
Hello,

rpm -q --list java
package java is not installed from the /usr/sbin directory ..

PT

What now ?
0
 
ptrevesAuthor Commented:
Hello,

THe PB, when I check to install the RPM using -U, it indicates that it is already installed,.

What can I do ?

PT
0
 
jlevieCommented:
What is the exact command you use that returns that the package is already installed?
0
 
ptrevesAuthor Commented:
Hello,

Under the root user, in the /usr/sbin directory:

rpm -Uvh jdk-1.3.1_09.i586.rpm

package jdk-1.3.1_09-fcs is already installed.

but I cannot check that is there....which java.........no jva

What now ?

PT
0
 
jlevieCommented:
Okay, the package name isn't java, which is why the list command failed. Try 'rpm -q --list jdk'. I think you'll find that the files are in someplace like /usr/jdk, /usr/java, /opt/java, etc. None of those would be  a part of your PATH and you'd need to add the java bin directory to your PATH.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now