How to set java_home on Windows 10 - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Java 8

How to set java_home on Windows 10


This tutorial shows you how to set a JAVA_HOME system variable on Windows 10.
Tested
  1. Windows 10
  2. JDK 1.8

1. Advanced System Settings

Type advanced system settings in the search box (beside the Windows start button), clicks View advanced system settings

2. Environment Variables

Select Advance tab, clicks Environment Variables

3. Add JAVA_HOME

In System variables, add a new JAVA_HOME variable and point it to the JDK installed folder.
 Note
Don’t include the \bin folder, just the JDK path. For example
  1. Correct – C:\Program Files\Java\jdk1.8.0_60
  2. Wrong – C:\Program Files\Java\jdk1.8.0_60\bin

4. Update PATH

In System variables, find PATH, clicks edit and append this %JAVA_HOME%\bin to the end.
P.S Puts the JAVA_HOME\bin in PATH make the Java’s commands are accessible from everywhere.
Done.

5. Test

Open a command prompt, type :
C:\Users\mycareerrepublic>java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

C:\Users\mycareerrepublic>javac -version
javac 1.8.0_60

C:\Users\mycareerrepublic>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_60

Core Java Interview Questions 


1.    How can I set Java path in Windows 7?
2.    What is Java home?
3.    How do I add Java to my path?
4.    Where is environment variables Windows 7?
5.    How do I know what version of Java I have?
6.    What is a path in Windows?
7.    What is meant by environment variable?
8.    What are the variables in a system?
9.    What is the state variable?
10. What is the state of the system?
11. What is the state of a thermodynamic system?
12. What is the state space model?
13. Is QA state function?
14. What is the state of postulate?

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.