Visual studio code java extension9/10/2023 ![]() ![]() ![]() Copy in the code below and then hit the Run button as per highlighted below. Then, we can start our first Java development.Īfter you open your VS Code in a new folder, open the Explorer (Ctrl+Shift+E), and add a new file call Hello.java. If can’t, you can configure it using Windows System Environment Variable > Path > JAVA_HOME (item 3 in the screenshot above). After you installed and re-open VS Code, the page should be able to recognize the JDK that you installed (refer to item 4 in the screenshot above). My scenario is I downloaded it from Oracle and installed. ![]() This is the page to download the OpenJDK, or you can use the Oracle JDK which can be download from Oracle website. Proceed to VS Code Extensions (Ctrl+Shift+X), search for Java Extension Pack, then install it and reload the VS Code.Īfter that, open the Command Palette (Ctrl+Shift+P), and type Java: Configure Java Runtime, open the command, and you will see the page which can configure Java Development Kit. To develop Java 11+ apps using Visual Studio Code, first, we need to download Java Extension Pack for VS Code. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |