LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2009, 09:20 PM   #1
cmontr
Member
 
Registered: Sep 2007
Posts: 175

Rep: Reputation: 15
fedora 10 sun java compiler problem


Hello All - I installed Sun-Java compiler to my fedora 10 server but getting error when :

java -version
-bash: java: command not found

This is in the path:

echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

which java
/usr/bin/which: no java in (/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)


the package was installed in /usr/local/ directory and this was added to the profile

~/.bashrc

JAVA_HOME=/usr/local/jddk1.5.0_04
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME PATH CLASSPATH

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar


Can someone has any idea?

Thanks
 
Old 03-25-2009, 02:37 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Well, the first two things to try are:
Quote:
echo $PATH
<= Do you see "/usr/local/jddk1.5.0_04/bin" in the path, like you expect?

... and ..

ls -l $JAVA_HOME/bin/java
<= Do you see the Java executable where you expect?
A brute-force trick to find Java on your filesystem is:
Quote:
find / -name java -print 2>/dev/null
Here are some detailed instructions (with screenshots) that might also help:

http://www.java.com/en/download/help/5000010500.xml
 
  


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
set Sun java to be default JVM in Fedora 7 immortaltechnique Linux - Software 2 02-21-2008 12:00 AM
cant install Sun Java on Fedora 7 nOmArch Linux - Newbie 1 10-13-2007 08:22 AM
Fedora 7 and Sun Java LinEngineer Linux - Newbie 2 09-15-2007 07:19 AM
Sun Java J2SE 5.0 on Fedora 4 netjack Fedora 7 02-26-2006 03:00 PM
problems installing sun java compiler in mandrake 10.0 ranger225 Linux - Newbie 2 09-13-2004 06:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:57 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