Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locating the Java directory after installation CentOs5 - where is it? 3

Status
Not open for further replies.

bazil2

Technical User
Feb 15, 2010
148
DE
(Elementary user)

Does anyone know where Java is installed after installing it; I am looking for the Java directory?

I ran the following command successfully:

# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel

Then:

[root@mail ~]# java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

So it looks to be installed, it's just I can't find where it resides.

Best regards
 
Run as root
Code:
rpm -ql <package name>
to find where the files were installed.


 
I usually use:

Code:
find / -name "string" -print

where "string" is what I'm looking for.
 
You could also try

Code:
which java

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top