Java - Setting up Environment Variable for Java

Опубликовано: 01 Апрель 2025
на канале: 2klearners
43
5

Setting up Environment Variable is Necessary Because The Java Compiler Wants To Connect With the Current Operating System.

So that the Java Program Can be Compiled in Command Prompt.

It is Necessary to Set up Environment Variable For Java. Until that Your Java Program Cannot be Compiled.

Steps To be Followed :
_______________________

Step 1: Open Command Prompt and Type "Java" .When it Shows it is Not Recognized

Step 2: Setting Up Environment Variable By Copying The Bin Folder of Java Location and Paste It into Environment Variables which is present in Advanced System Setting in Control panel.

Step 3: Create New
Variable Name: Path
Variable Value : C:\Program Files\Java\jdk-13.0.2\bin(The Location of Java Bin Folder)

Step 4: Click Ok and Close The Settings and go to Command Prompt

Step 5: Type "java" Now the Java Basic Commands Can be Listed Out. So That You Have Completed The Environment Variable Setup Sucessfully.

link :https://www.oracle.com/in/java/techno...
Start Java Programming.

#java
#jdk
#setup