Solved

Java Install on Red Hat Linux

Posted on 2004-09-09
9
495 Views
Last Modified: 2013-12-06
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
Comment
Question by:ptreves
  • 5
  • 3
9 Comments
 
LVL 11

Accepted Solution

by:
Jase-Coder earned 500 total points
ID: 12019283
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
 

Author Comment

by:ptreves
ID: 12019304
Hello,

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

PT
0
 

Author Comment

by:ptreves
ID: 12019334
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
 
LVL 40

Expert Comment

by:jlevie
ID: 12019437
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:ptreves
ID: 12019575
Hello,

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

PT

What now ?
0
 

Author Comment

by:ptreves
ID: 12019677
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
 
LVL 40

Expert Comment

by:jlevie
ID: 12019723
What is the exact command you use that returns that the package is already installed?
0
 

Author Comment

by:ptreves
ID: 12019921
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
 
LVL 40

Expert Comment

by:jlevie
ID: 12020197
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now