Install Java SDK in VScode

Yu Che Liu
3 min readJan 28, 2021
  1. Open your VScode and navigate to the folder location that you want to submit the assignment.

After navigating to the right folder, click “Select Folder button”

2. Next step, we are going to install the JAVA extension package for VScode. On your left-hand side, clicked the “extension” icon. In the search bar, type “java extension pack”, and install the package by clicking the install button.

3. Next step, we are going to configure the java runtime. On the top tool bar, selected View -> Command Palette.

4. When you clicked Command Palette, system will prompt you a search bar in the middle of your screen. Type “java: Overview “ to enter java overview page.

5. Select “Configure Java Runtime”

6. You will get a new page “Configure Java Runtime”. In this step, we need to install Java JDK to run our java file within VScode. Note: in this course, we are going to use JDK version 11, and JVM Hotspot.

After installing the JDK, close VSCode and restart again.

7. Within your folder, create a new file called “hello.java”. Type the following code in that file.

8. clicked running icon. You should see “Hello world!” showing in your terminal. If you see the text, Congratulation, you set up your Java environment.

--

--

Yu Che Liu

Java Full stack developer | Google Android Associate developer certified | CompTIA Linux + certified | Teaching Assistant | https://www.linkedin.com/in/yucheliu