[Solved] Unrecognized VM option 'UseConcMarkSweepGC' When Running the main() in IntelliJ IDEA
There is an old Java project. After I upgrade the version of JDK from 8 to 21 in IntelliJ IDEA, and run the main() method in IntelliJ IDEA, an error occurs.
The error message
Abnormal build process termination: |
Solutions
Remove the unrecognized VM option ‘UseConcMarkSweepGC’ in IntelliJ IDEA.
- Open Settings.
- Click “Build, Execution, Deployment”, and click “Compiler”.
- To find “Build process > Shared VM options”.
- Remove “-XX:+UseConcMarkSweepGC”.
- Click the “OK” button.