?
Solved

Java Install on Red Hat Linux

Posted on 2004-09-09
9
Medium Priority
?
507 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
[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
  • 5
  • 3
9 Comments
 
LVL 11

Accepted Solution

by:
Jase-Coder earned 2000 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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
 

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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