LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-08-2003, 11:39 PM   #1
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Rep: Reputation: 30
How to check that JDK Installed?


How can I check that JDK is installed on my RH server (7.2 or 9)? I have to install Oracle 9i R2 on it so have to confirm the JDK installation.
 
Old 09-09-2003, 12:04 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
sun's sdk? if you installed from rpm, then just go to /usr/java and see if a folder with the name of your sdk version is in there.

an easier way, which depends on if you have the path to java set, is to use the command, "java -version", from a shell terminal. you'll get output of the java version you're using.

if you didn't set the path and don't know how to set the path, just look at this - it's a partial copy of my /etc/profile file.

you want to copy these lines starting with "JAVA_HOME=" and paste them after the "#path manipulation" block ending with "fi". i'm really not sure though if placement really makes much difference though.

Quote:
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

JAVA_HOME=/usr/java/j2sdk1.4.1_01
pathmunge $JAVA_HOME/bin after
export JAVA_HOME
 
Old 09-09-2003, 12:44 AM   #3
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
Nice info and I have checked so I have to install the Java. I will download from www.blackdown.org.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I have Redhat 3.0 factory installed on my Dell hardware. I have installed JDK 1.4.2 vcvinith Red Hat 2 04-18-2005 07:09 AM
How to check what libraries are installed? Palamides Linux - Software 3 01-06-2005 07:28 PM
How do I check what wm I have installed. mlsbraves *BSD 12 12-08-2004 10:25 PM
How do I check if Apache is installed? jmg1894 Linux - Newbie 4 07-15-2004 02:23 PM
How to check for installed software... tarballed Linux - General 3 04-02-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration