Setting up enviromental variables in Windows 10 to use java and javac

后端 未结 7 1318
再見小時候
再見小時候 2020-11-30 23:36

I got a new laptop with Windows 10 and I want to set it up so I can use java and javac from the command line.

I have searched online but al

相关标签:
7条回答
  • 2020-12-01 00:19

    Here are the typical steps to set JAVA_HOME on Windows 10.

    1. Search for Advanced System Settings in your windows Search box. Click on Advanced System Settings.
    2. Click on Environment variables button: Environment Variables popup will open.
    3. Goto system variables session, and click on New button to create new variable (HOME_PATH), then New System Variables popup will open.
    4. Give Variable Name: JAVA_HOME, and Variable value : Your Java SDK home path. Ex: C:\Program Files\java\jdk1.8.0_151 Note: It should not include \bin. Then click on OK button.
    5. Now you are able to see your JAVA_HOME in system variables list. (If you are not able to, try doing it again.)
    6. Select Path (from system variables list) and click on Edit button, A new pop will opens (Edit Environment Variables). It was introduced in windows 10.
    7. Click on New button and give %JAVA_HOME%\bin at highlighted field and click Ok button.

    You can find complete tutorials on my blog :

    How to set JAVA_HOME in 64 bit Windows 10 OS

    0 讨论(0)
提交回复
热议问题