LinuxQuestions.org

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

Rohith 01-05-2012 02:44 PM

Command not found
 
In putty, I wanted to run the jar file, so I entered
java -jar abc.jar
in the script abcd.sh
Now, when I'm running the script
./abcd.sh
it shows an error : "java: Command not found"
What exactly do you mean by this error and how can it be resolved.
Thanks...

Doc CPU 01-05-2012 02:55 PM

Hi there,

Quote:

Originally Posted by Rohith (Post 4567270)
In putty, I wanted to run the jar file, so I entered
java -jar abc.jar
in the script abcd.sh
Now, when I'm running the script
./abcd.sh
it shows an error : "java: Command not found"
What exactly do you mean by this error and how can it be resolved.

it means exactly what it says: bash can't find the command "java" (I just assume you're using bash). Maybe it exists somewhere, but it's not in the shell's search path.
Make sure Java is installed, and the Java executable is in the search path.

[X] Doc CPU


All times are GMT -5. The time now is 12:06 AM.