More show less tell.
No one will have any idea of what the issue is until you show what you are trying.
(You will need to post the macro, or at least the part that tries to open a Java app, in this thread)
Wild guessing is huge a waste of a reader's time, but since I've already done some:
- you may need to update a path in any "Execute Shell Script" action that you are using
- you may need to install or re-install the Java run-time on your new system.
Installation of the JDK and the JRE on macOS