Why can't I deploy my jar file on heroku?
I had the same Error, but the docs helped out. Before you can run the deploy command you have to install the java plugin:heroku plugins:install java
It means that you have not installed deploy plugin. So first install the heroku deploy plugin using below command:
heroku plugins:install heroku-cli-deploy
And then try to deploy the jar. It should work