To replay a macro from the workspace, select File > Macro > Play Macro from the menus.

Alternatively, click the
(Play Macro) toolbar button.
This opens the operating specific standard file open dialog, with the Files of Type drop-down list set to .java, allowing you to select a Java macro file. Once you click Open in the dialog, STAR-CCM+ will attempt to compile the Java code, and then run it.
Progress is reported in several ways:
If the compilation does not work you will get errors reported via a dialog and in the Output window. These errors will need to be corrected before the script can run.