To execute a java program, we want to compile the java source code (.class file) to JVM.
To develop, compile and execute a java program we need to install Java in our system. To check whether java is already installed in your PC’s, open Command Prompt(CMD) and type,
java -version
If it shows like this,
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode, sharing)
Java is installed in your, if it shows any error you want to download java from here https://www.java.com/en/download/
After downloading java, install it in your system and follow the steps to set path for windows,
Step 1: Press Win+R to open Run dialog box and type sysdm.cpl and hit enter, this will open system properties.
Step 2: Clicking on the Advanced tab settings in the system properties dialog box.
Step 3: Clicking on the Environment Variables button at the bottom right in advanced tab.
Step 4: Click on Environment variable, in System variable, click on New button.
Step 5: In variable name, type JAVA_HOME and in variable path add the path where Java is installed, by default, java is installed in C:\Program Files\Java\jdk-12.0.1
Now paste the copied path C:\Program Files\Java\jdk-12.0.1\bin in variable path and click on ok and save the settings.
Now open your command prompt and type java -version, now it will show the version of java.
We can also set temporary path for java using Command Prompt using the below command,
C:\Users\neuralbeast>set path=C:\Program Files\Java\jdk-12.0.1\bin
and hit enter. This will set temporary path for java.
Thank you for the good writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! However, how could we communicate?|
Hi bro, thank you for your support and keep supporting us bro. You can contact us via mail: neuralbeast@gmail.com or WhatsApp us: 9443194463.
– Neural Beast
Hello! I wish to say that this post is awesome, great written and come
with approximately all importtant infos.
Iād like to look extra posts like this! š
Great post! We wil be linking to this great pos oon ourr website.
Keep up the great writing.
Hi there to every body, it’s my first go to see of this webpage; this webpage cojtains amazing and
really excellent data in support of readers.