#2 Java Development Kit (JDK) Setup

#2 Java Development Kit (JDK) Setup

Introduction to Java Development Environment

In this section, the speaker introduces the Java development environment and discusses the options for writing and running Java code.

Choosing an Editor or IDE

  • Multiple software options are available for writing Java code, such as Notepad, Wordpad, Notepad++, and EditPlus.
  • Integrated Development Environments (IDEs) provide additional features like code compilation, debugging, and project management.
  • Popular IDEs for Java include Eclipse, IntelliJ IDEA, NetBeans, and Visual Studio Code (VS Code).
  • The speaker's personal favorite is IntelliJ IDEA due to its advanced features. However, VS Code is recommended for beginners as it is lightweight.

Installing JDK (Java Development Kit)

  • JDK is required to compile and run Java code.
  • To download JDK, search for "JDK download" in your browser.
  • Choose the appropriate version based on your operating system (Windows, macOS, Linux).
  • The speaker recommends using Oracle JDK 17 as it provides long-term support (LTS).

Installing VS Code

  • VS Code is a popular lightweight IDE suitable for Java development.
  • Download VS Code from their official website based on your operating system.
  • Installation process may vary slightly depending on the OS.

Verifying JDK Installation

  • Open the command prompt or terminal.
  • Type java --version to check if JDK is installed correctly. It should display the installed version of Java.
  • Additionally, type javac --version to verify that the Java compiler is also installed.

Timestamps are provided where available.

Setting up Environment Variables

In this section, we learn how to set up environment variables for Java.

Configuring Path Variable

  • Open the Control Panel and navigate to "Environment Variables".
  • Under "User Variables" or "System Variables", ensure that you have a variable named "Path".
  • If the "Path" variable is missing, click on "New" and create a new variable with the name "Path".
  • Set the value of the "Path" variable to the path of your Java bin folder.
  • Example: C:Program FilesJavajdkbin
  • Click on OK to save the changes.

Installing Visual Studio Code (VS Code)

This section covers the installation process of VS Code.

Launching VS Code

  • Once VS Code is installed, launch it.
  • Familiarize yourself with the interface of VS Code.
  • Note that different extensions may be visible depending on previous usage.

Please note that these are only selected sections from the transcript.

Video description

Check out our courses: AI-Powered DevOps with AWS Live Course V2: https://go.telusko.com/ai-devops-v2 Coupon: TELUSKO10 (10% Discount) Java Spring Boot AI Live Course: https://go.telusko.com/JavaSpringBootAI Coupon: TELUSKO20 (20% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) Udemy Courses: Java Spring:- https://go.telusko.com/Udemyjavaspring Java:- https://go.telusko.com/udemyteluskojava Spring: https://go.telusko.com/udemyteluskospring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF In this lecture we are discussing about setup and tools required: 1)Editor/IDE 2)Compiler or interpreter 3)Setup of jdk #1 editor -It is a software which is used to write code example- notepad, notepad++, sublime, visual studio code.. IDE - It is a software which is used to write code and compile and run the code . example -eclipse ide, IntelliJ ide , visual studio Note: With adding some extension vs code also work as IDE. -- Visual studio and vs code both are different -- in this course we are follow vs code Visual Studio Code (VS Code) is a lightweight, open-source code editor developed by Microsoft. It is a cross-platform application that runs on Windows, Linux, and macOS. VS Code is built on the same underlying technology as Visual Studio, but it is designed to be a more streamlined, lightweight development environment. link for vs code:https://code.visualstudio.com/Download step to install: i)select in which os you using windows, linux or macOS as per system download. ii)just install and go next -- next --next. iii)Now it is ready to use #2 Compiler and interpreter --You should download compiler and interpreter to compile or run the code. --for that we have toolkit jdk java development kit two option to download jdk : a) with oracle b)open source like amazon cornetto setup and installation for oracle jdk: link to download:https://www.oracle.com/java/technologies/downloads/ -- Select long term support version that is jdk 17 as per your operating system --after download just instal by clicking next -- next --next --Set path in environment variable for that : step 1:find-- c drive -- program files -- java -- jdk -- bin and copy this path e.g c:\program files\java\jdk-17\bin step 2:open environment variable -- system variable or user variable --path -- edit -- new -- paste the path of bin folder of jdk Note: what is the difference between user and system variable? user variable is only for that user and system variable is for all user step 3: save open cmd or PowerShell : write java --version and javac --version to check perfectly your compiler and jvm path setup Github repo : https://github.com/navinreddy20/Javacode.git More Learning : Java :- https://bit.ly/3x6rr0N Python :- https://bit.ly/3GRc7JX Django :- https://bit.ly/3MmoJK6 JavaScript :- https://bit.ly/3tiAlHo Node JS :- https://bit.ly/3GT4liq Rest Api :-https://bit.ly/3MjhZwt Servlet :- https://bit.ly/3Q7eA7k Spring Framework :- https://bit.ly/3xi7buh Design Patterns in Java :- https://bit.ly/3MocXiq Docker :- https://bit.ly/3xjWzLA Blockchain Tutorial :- https://bit.ly/3NSbOkc Corda Tutorial:- https://bit.ly/3thbUKa Hyperledger Fabric :- https://bit.ly/38RZCRB NoSQL Tutorial :- https://bit.ly/3aJpRuc Mysql Tutorial :- https://bit.ly/3thpr4L Data Structures using Java :- https://bit.ly/3MuJa7S Git Tutorial :- https://bit.ly/3NXyCPu Donation: PayPal Id : navinreddy20 https://www.telusko.com