By just downloading and installing Java, it will not work. To run and compile Java code, we need to set the environment variable for the Java bin folder.
So, here we are going to discuss how to setup environment variables for Java in Windows 10.
How to Setup Environment Variables for Java
Here in section, we have covered all the steps to setup environment variables for Java.
Step 1: Open C Drive > Program Files folder and look for Java folder and open it.
Step 2: Inside the Java folder you will find a jdk-14.0.1 folder, open it and open the bin folder, copy the path of bin folder.
Note:- Now you have to set the environment variable.
Step 3: For that Go to Control Panel > System and Security > System > Advanced System Setting > Environment Variables
Step 4: Under System variable, you will find “PATH” just select it and click on edit. Now click on New and add the bin folder location, after that click on “OK“.
Now to check whether Java is successfully set up or not, open Command Prompt and type this two command “java -version” and “javac“.
By using ‘java -version‘ command, you can check the Java JDK version and ‘javac‘ command will help you to understand whether the Java compiler is set up or not.
javac is a compiler that helps you to compile your java file. If you find a bunch of statements in the command prompt that means Java JDK 14 is fully set up on your windows system.
To start with Java development you have to use Eclipse IDE. It is one of the most popular IDE (Integrated Development Environment) for Java Development. Eclipse IDE will help you to write and run the Java program.
Hope we helped you to install and setup Java 14 on your Windows 10 computer. If you have any queries and want to know anything related to Java JDK 14 then please leave your comment and let us know.