LinuxQuestions.org
Help answer threads with 0 replies.
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 03-27-2006, 07:57 AM   #1
tahirghafoor
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
JRE -CLASSPATH causing problem


hello everybody!
i am newbe... i want to be sure if java is install on my RHE AS 4.
while i am trying to install an application its stops and give error at JRE -CLASSPATH command.
how i can check if JRE command is working properly

Thanking you for your time and efforts.
Regards,
 
Old 03-27-2006, 08:51 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
"jre" is the Java Runtime Environment. It's not a single program, but a collection of library files, programs, documentation and much more.

If you get an error regarding "CLASSPATH", you may not have correctly set the $CLASSPATH environment variable.
This variable is used to tell the system where it can find your Java environment.

Try:
Code:
echo $CLASSPATH
for starters.

If that doesn't give you any result, try looking at the installation notes on Sun's java.com site.
http://www.java.com/en/download/manual.jsp (for the latest Java version).
 
Old 03-27-2006, 11:45 PM   #3
tahirghafoor
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
hi timmeke!
thanks for your response
i tried echo $CLASSPATH but nothing happened.
so, does it mean either java is not installed properly or classpath variable not defined properly. Any clue? suggestion....
Regards
 
Old 03-28-2006, 12:52 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
To find out if you have installed Java, try:
Code:
whereis java
Those commands try to locate (you could try "locate" instead of "whereis" too) the java interpreter.
If Java is installed, the whereis command should print out something like
"/usr/bin/java"
If the whereis command can't locate the java interpreter, either $PATH is wrong or you don't have java installed.

You could also do:
Code:
ls -l /usr/java
since that's where java gets installed by default, I believe.
 
  


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
jre install problem.. tehnick Linux - Software 6 03-29-2005 07:30 AM
JRE Problem Tr@ce Linux - Software 7 03-28-2005 09:40 PM
Problem with import (CLASSPATH, JAVAPATH?) os2 Programming 2 03-28-2005 08:33 AM
help classpath problem j2sdk1.4.2_04 antony_csf Linux - Software 3 06-17-2004 12:46 AM
Jre 1.4.2 locale problem GruiX Linux - Software 8 03-06-2004 04:59 AM

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

All times are GMT -5. The time now is 03:28 AM.

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