I decided to use VsCode, which is an open source lightweight tool, but found that it does not support Java8. Looked up a lot of information, now summarize a simplest method to record as follows.

2. Solutions

You just need to download a jdk11, configure it in vscode, and it will not conflict with the JDK configured on the system

2.1 Download address: jdk.java.net/java-se-ri/…

After pressure literally put a folder, the path had better not have Chinese characters

2.2 Modifying THE JSON Configuration

To modify the configuration of VsCode, click the gear icon –> Settings –> Extensions –> Edit in Settings. json –> add a configuration.

    “java.home”: “E:\soft\tomcat\jdk-11”,

2.3 restart

After completing the above steps, restart VsCode directly for the configuration file to take effect.