The environment I went this time is as follows
OS: MacOS Catalina (version 10.15.4) Java: 14
Install “Java Extension Pack” by extension. Execute the following command in VS Code to display the extension installation screen. “Command + Shift + x”
Enter “java” on the search screen and select “Java Extension Pack” to install
If ↓ screen is displayed as a result of installation, select “Download manually”
When downloaded manually, ↓Installation complete is displayed.
Download the JDK from the following site and install (version 14 this time) https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
Through #Path If the Java path does not pass, JAVA_HOME must be set. Execute the following command in the terminal to check the current JAVA_HOME.
Copy the execution result, open the VS Code setting screen and search for “java home”.
Select “Edit with settings.json” and paste it below “java.home”
Enter appropriate sample code and execute debug