Which version of System Workbench for STM32 did you install ? (32bits or 64bits? the two can be installed on Windows thanks to their compatibility version. But, System Workbench can only run with same architecture as the Java RE).
Please install Java RE 8 and System Workbench matching your system architecture:
Link to JavaRE: https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
Don’t forget to uninstall the previous Java and System Workbench to avoid any path or installation issues.
Hope it works.