Make Sure Your IDE Is Configured for Java
Many integrated development environments (IDEs) are configured for Java by default. If your IDE isn't, make sure to add the Java features you need. For example, the Visual Studio Code IDE has an Extension Pack for Java.
To configure Visual Studio Code:
Click the Extensions icon and type
javain the search field. Find Extension Pack for Java and click Install.
If a message on the Extension Pack for Java tab says you must install Java or a higher version of Java, click the button and run the installation.
Locate the home folder for Java. For example:
Open the Visual Studio Code Settings tab. To open Settings on a Mac, type command-comma.
java.homein the Settings tab search field.
Select User, then click the Edit in settings.json link.
Add the path to the Java home folder to the
settings.jsonfile and save the file. For example: