Reputation: 197
How can we run Jar File in command prompt?
I've used this command:
java -jar myJARFile.jar
But the result was:
-bash: java: command not found
Upvotes: 0
Views: 1137
Reputation: 8969
You need to install java on your machine and add the java directory to PATH variable.
Upvotes: 1