LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash command not found (https://www.linuxquestions.org/questions/linux-newbie-8/bash-command-not-found-607931/)

gobicse 12-19-2007 02:27 PM

bash command not found
 
hi

i am trying to run a java program in red hat linux 9 terminal.

i got the following message. i tried to solve it.. but i dunno..
kindly help me...

___________________________________________--
[root@localhost bin]# ls
appletviewer idlj javadoc jconsole jmap jstat pack200 samplejava.txt tnameserv
apt jar javah jcontrol jps jstatd policytool Samplejava.txt unpack200
ControlPanel jarsigner javap jdb jrunscript keytool rmic schemagen wsgen
extcheck java java-rmi.cgi jhat jsadebugd native2ascii rmid serialver wsimport
HtmlConverter javac javaws jinfo jstack orbd rmiregistry servertool xjc
[root@localhost bin]# vi HelloWorld.java
[root@localhost bin]# javac Helloworld.java
bash: javac: command not found

----------------------------------------------
what is that bash command not found...

zoranp 12-19-2007 02:31 PM

Don't shoot the messenger. Bash is shell reporting the problem.

Executable named javac is not present in your path.

pixellany 12-19-2007 02:42 PM

Do you know that "javac" is on your system? (Use find or locate, or maybe "man javac")

You need to have the pathname in your PATH variable, or you need to simply enter the full path---eg: /usr/bin/javac

To run something in the current directory: ./javac ("." means "current directory", and thus is read as a full pathname)

chrism01 12-19-2007 05:46 PM

FYI, RH9 is yrs out of date and does not have updates, inc security. Highly recommend you get a current distro eg RH Fedora 7 or 8.


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