My version of Heroku is as follows:
heroku/7.0.60 darwin-x64 node-v10.2.1
When I run:
heroku deploy:jar ...
I get:
› Error: deploy:jar is not a heroku command.
› Perhaps you meant destroy
› Run heroku help for a list of available commands.
This seems to contradict the docs:
https://devcenter.heroku.com/articles/deploying-executable-jar-files
What am I doing wrong?
If you can't run jar files on your Windows 10 PC, you might need to reinstall Java Runtime Environment. When JAR files are not opening, another great method is to simply use a universal file opener. Alternatively, some reported that turning your JAR file into a BAT file worked perfectly.
You can make your simple archive or J2EE Client Module into an executable JAR file that you can launch with the java command. To deploy an executable JAR file: Select and right-click the simple archive or client icon in the Navigator to display the context menu.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With