try the
heroku-deploy CLI plugin.
It has a mechanism for
deploying executable JAR files. You can run a command like:
$ heroku deploy:jar --jar powerMonitor.jar
You will also need to put a Procfile in the same directory you run the command. The Procfile must contain the process name and the Java command. It might look like this:
job: java -jar powerMonitor.jar