[Solved] idea Start Project Error: idea Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

Question:

After the company takes a new MAC system notebook and installs idea, start the code on GitHub and report the following exception: idea error: could not create the Java virtual machine Error: A fatal exception has occurred. Program will exit.

Find out the reason later. It turns out that the newly installed version of idea is too new, and the default JDK version of idea is inconsistent with the JDK version installed by the operating system. Finally, modify the JDK version of idea to keep up with the operating system. It’s OK.

Solution: enter the CMD window and enter Java – version to view the current JDK version and idea –> File–> Project Structure–> Project Settings–> Project view the JDK version used by the current project

Similar Posts: