How to set up Java in Visual Studio Code!



How to set up Java in Visual Studio Code!

How to set up Java in Visual Studio Code!

Hello and welcome to the Java introduction video with Visual Studio Code! In this video we go through installing java, setting up the environment path, creating different types of projects, and running each project with a simple hello world program.

Step 1 — Download Java:
– Windows: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
– Mac:
– Possibly download through Brew
– https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
– Linux:
– Archlinux: yay -S jdk11-openjdk jre11-openjdk
– Ubuntu/Debian: sudo apt update && sudo apt install oracle-java11-installer-local
– Fedora: sudo dnf install java-11-openjdk

Step 2 — Set the Environment PATH variable:
– Windows: Add ‘C:/Program Files/Java/[your java version]’ to PATH
– Mac: https://i.imgur.com/9hRcJM3.png
– Linux: Same as mac except “JAVA_HOME=/usr/lib/jvm/[your java version]
– Archlinux: *AS ROOT* archlinux-java [your java version]

Step 3 — Create the projects within the Visual Studio Code editor.
Step 4 — Program in Java!

** Gradle install:
– Windows: https://gradle.org/install/
– Mac Install through Brew if not available there then https://gradle.org/install/
– Linux:
– Archlinux: yay -S gradle
– Ubuntu: sudo add-apt-repository ppa:cwchien/gradle && sudo apt install gradle
– Fedora: https://tecadmin.net/install-gradle-fedora/

————————–
My Links:
Mixer | https://mixer.com/qubyt
Gaming Channel | https://www.youtube.com/channel/UCafth7WKBRiwt2RuYvDC9bA
————————–

————————–
Outro Music:
Diviners feat. Contacreast – Tropic Love [NCS Release]
Link | https://www.youtube.com/watch?v=u6RJv7f__Mg
————————–

Thanks for watching!~

Comments are closed.