cli icon indicating copy to clipboard operation
cli copied to clipboard

Commands from @heroku-cli/plugin-java do not resolve

Open TheMejmun opened this issue 8 months ago • 4 comments

Since the latest update, java commands do not resolve anymore. E.g. heroku java:jmap produces the following error: Warning: java:jmap is not a heroku command.. This command used to work before this latest update.

OS version: macOS 26.3.1 Shell version: zsh 5.9 (arm64-apple-darwin25.0) Heroku CLI version: 11.0.0 Java Plugin version: 3.1.1

% heroku --version
heroku/11.0.0 darwin-arm64 node-v25.8.2
% heroku plugins:install @heroku-cli/plugin-java
heroku: Installing plugin java@latest... installed v3.1.1
% heroku java:jmap
 ›   Warning: java:jmap is not a heroku command.
 Did you mean apps:join? No
 ›   Error: Run heroku help for a list of available commands.
% heroku plugins --core
@oclif/plugin-commands 4.1.40 (core)
@oclif/plugin-help 6.2.38 (core)
@oclif/plugin-legacy 2.0.28 (core)
@oclif/plugin-not-found 3.2.75 (core)
@oclif/plugin-plugins 5.4.58 (core)
@oclif/plugin-search 1.2.38 (core)
@oclif/plugin-update 4.7.23 (core)
@oclif/plugin-version 2.2.38 (core)
@oclif/plugin-warn-if-update-available 3.1.55 (core)
@oclif/plugin-which 3.2.44 (core)
heroku-repo 2.0.0
java 3.1.1

TheMejmun avatar Mar 26 '26 12:03 TheMejmun

@TheMejmun thanks for submitting this and we will investigate the issue

heroku-johnny avatar Mar 27 '26 17:03 heroku-johnny

Thank you!

TheMejmun avatar Mar 28 '26 09:03 TheMejmun

@TheMejmun thank you again for reaching out about this. Unfortunately this is because the java plugin is an older plugin and does not work with v11 of the CLI. If you need to use it you can always install an older version of the CLI using the command heroku update --version 10.17.0. We also have a new process documented for deploying JAR and WAR files which is intended to replace a lot of the functionality of the java plugin.

I am going to go ahead and close this issue for now, but if there is functionality from the java plugin that you need that is not replicated in the new process, please let us know.

k80bowman avatar Apr 08 '26 19:04 k80bowman

@k80bowman The Heroku dashboard refers to this page for analysing java memory issues: https://devcenter.heroku.com/articles/java-memory-issues#profiling-a-java-application-on-heroku These tools are very convenient for finding memory leaks, specifically java:jstat and java:jmap.

I assume that it would be possible to recreate the functionality using ps:exec and ps:copy, but the documentation should reflect that the java commands are not available anymore.

TheMejmun avatar Apr 09 '26 08:04 TheMejmun