0

hi

i have red hat 9 on the system. i downloaded java sdk for linux path from sun and installed it. but still it says javac command not found even though i renamed the path using the locate javac command.

4
Contributors
6
Replies
7
Views
12 Years
Discussion Span
Last Post by DMR
0

The locate command doesn't rewrite anything - it just tells you where xxx is located.

Try doing updatedb, followed by locate xxx to see where it is (like, /usr/local/bin or /usr/sbin or whatever the path is) and maybe at that location to yoru $PATH if it isn't already there.

0

hi

i have red hat 9 on the system. i downloaded java sdk for linux path from sun and installed it. but still it says javac command not found even though i renamed the path using the locate javac command.

did you add a PATH= pointing to the location of your java install? did you install as root or as a user? did you install to the standard location?

0

did you add a PATH= pointing to the location of your java install? did you install as root or as a user? did you install to the standard location?

yes i added the javac path using the "locate javac" command i installed it in my home folder i dont know if it is user or rool

0

i did this in .bash_profile

PATH = $PATH:/usr/java/j2ske1.4.2-06/bin/javac
export PATH

i found the path by typing locate javac in terminal.

but still i get this error:

bash: javac : command not found

0

i did this in .bash_profile

PATH = $PATH:/usr/java/j2ske1.4.2-06/bin/javac
export PATH

Just at first glance (although it may not be the fix): your PATH statement should only point to the directories in which executables reside, not to the executables themselves; try this instead:

PATH = $PATH:/usr/java/j2ske1.4.2-06/bin:
export PATH

You may also have to export other environment variables besides PATH, such as CLASSPATH- more info and suggestions can be found in the results of this G4L search:

http://www.google.com/linux?hl=en&lr=&q=javac+linux+%22command+not+found%22&btnG=Google+Search

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.