thecoderworld
  • About Us
  • Contact Us
  • Privacy Policy
  • Advertise
  • Careers
No Result
View All Result
  • Programming
  • Open Source
  • How To
  • Tutorials
    • Web Development
    • Data Science
  • Best Of
    • Alternative
    • AI
    • IDE
  • PC
    • Windows
    • Mac
    • Linux
  • Lists
  • Security
  • Tech
No Result
View All Result
thecoderworld
  • Programming
  • Open Source
  • How To
  • Tutorials
    • Web Development
    • Data Science
  • Best Of
    • Alternative
    • AI
    • IDE
  • PC
    • Windows
    • Mac
    • Linux
  • Lists
  • Security
  • Tech
No Result
View All Result
thecoderworld
No Result
View All Result
Home How To

How to Setup JAVA_HOME Environment Variable on Windows 10

Ajoy Kumar by Ajoy Kumar
August 23, 2020
in How To, Programming
Reading Time: 3min read
0
How to Setup JAVA_HOME Environment Variable on Windows 10
0
SHARES
147
VIEWS
Share on FacebookShare on Twitter

If you are getting an error while you are trying to run your Java program/application. Then this may be because you have not set up Java JDK properly on your Windows 10 computer.

By just downloading and installing Java will not work, we have to set the JAVA_HOME environment variable. JAVA_HOME is the name of an environment variable on the operating system that points to the installation directory of Java JDK.


Also Read: How to Setup Eclipse IDE for Java Development on Windows 10

How to Setup JAVA_HOME Variable on Windows 10

In this section, we are going to discuss how we can set up the JAVA_HOME environment variable on windows 10. Here you’ll also find a video tutorial:

Step 1: First of all, you have to download and install Java JDK on your windows 10 computer.

Also Read: How to Install and Setup Java JDK 14 on Windows 10

Step 2: After that open a control panel and go to System and Security > System > Advanced system settings.


Advanced system settings

Step 3: In System Properties window go to Advanced Tab and click on “Environment Variable“.

Environment Variable

Step 4: Under the “System variables” click the “New” button and enter JAVA_HOME as a variable name and the path to your Java JDK directory under Variable value.

JAVA_HOME Variable name

Step 5: Now you have to add this JAVA_HOME variable to the Path. Click on “Path” then click on “Edit” and add a new environment variable “%JAVA_HOME%\bin”

JAVA_HOME variable on windows 10

How to Verify JAVA_HOME Variable

How to verify JAVA_HOME

Now to verify the JAVA_HOME environment variable open command prompt and run this command.

java_version

This will show you the java version, Java SE Runtime Environment and Java HotSpot Server VM build number.


echo %JAVA_HOME%

This will print out the directory JAVA_HOME points to or empty line if the environment variable is not set correctly.

Now to check javac compiler just run this command 

javac

 If you find a bunch of statements in the command prompt that means JAVA_HOME is fully set up on your windows system.


Tags: JAVA_HOME
Previous Post

How to Install Flatpak and Snap App Store in Linux on Chromebook

Next Post

Chainer: A Flexible Framework of Neural Networks

Ajoy Kumar

Ajoy Kumar

I am an entrepreneur by heart and founder of thecoderworld. Who always follows his passion. I love writing about software, coding, open-source, technology, smartphones, tips and tricks

Related Posts

Top 5 Free Ruby Courses for Beginners in 2021
Programming

Top 5 Free Ruby Courses for Beginners in 2021

January 15, 2021
Isolation Techniques for Reactive Microservices
Tech

Isolation Techniques for Reactive Microservices

January 13, 2021
6 Best Open Source IoT Programming Languages in 2021
Programming

6 Best Open Source IoT Programming Languages in 2021

January 11, 2021

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

  • 830 Fans
  • 63 Followers
  • 50 Followers
  • 18k Subscribers

Latest Posts

Benefits Of Cross-Platform App Development With React Native
Tech

Benefits Of Cross-Platform App Development With React Native

January 15, 2021
Top 5 Free Ruby Courses for Beginners in 2021
Programming

Top 5 Free Ruby Courses for Beginners in 2021

January 15, 2021
What Does IDE Actually Do
Uncategorized

What Does IDE Actually Do?

January 15, 2021
thecoderworld

© 2016 - 2020 thecoderworld.com

Navigate Site

  • About Us
  • Contact Us
  • Privacy Policy
  • Advertise
  • Careers

Follow Us

No Result
View All Result
  • Programming
  • Open Source
  • How To
  • Tutorials
    • Web Development
    • Data Science
  • Best Of
    • Alternative
    • AI
    • IDE
  • PC
    • Windows
    • Mac
    • Linux
  • Lists
  • Security
  • Tech

© 2016 - 2020 thecoderworld.com