Java path set | Set JAVA_HOME

Java path set | Set JAVA_HOME | setting environment variables in windows 10

The Java Development Kit (JDK) is a distribution of Java Technology by Oracle Corporation. It implements the Java Language Specification (JLS) and the Java Virtual Machine Specification (JVMS) and provides the Standard Edition (SE) of the Java Application Programming Interface (API). It is derivative of the community driven OpenJDK which Oracle steward. It provides software for working with Java applications. Examples of included software are the virtual machine, a compiler, performance monitoring tools, a debugger, and other utilities that Oracle considers useful for a Java programmer.


Oracle have released the current version of the software under the Oracle No-Fee Terms and Conditions (NFTC) license. Oracle release binaries for the x86-64 architecture for Windows, macOS, and Linux based operating systems, and for the aarch64 architecture for macOS and Linux. Previous versions have supported the Oracle Solaris operating system and SPARC architecture.


Follow below steps to set java path in windows.

We assuming you already install java development kit (JDK).


Steps

1. Open windows file explorer and navigate to  C:\Program Files\Java\jdk-x.x.x (x.x.x is version no.).

2. Copy address from address bar


3. Right click on This PC and click properties


4. Click Advanced system settings


5. Click environment variable in following window



6. Click new in system variable tab



7. On next window type system variable as JAVA_HOME and paste address on variable value then press ok.



8. Select path variable and click edit. 



9. Click new and type %JAVA_HOME%\bin. (%JAVA_HOME%  gives the address in step 7 and bin is sub directory)


Then press ok in 3 open windows.














































Checking
Now open command prompt from start by typing cmd and click the result. 
Type java -version in command prompt and the version output is print on screen.


comment and share.
subscribe for more content

Comments

Popular Posts