user3118199
user3118199

Reputation: 197

Run Jar file in command prompt on Linux Server

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

Answers (1)

gigadot
gigadot

Reputation: 8969

You need to install java on your machine and add the java directory to PATH variable.

Upvotes: 1

Related Questions