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

后端 未结 7 1348
再見小時候
再見小時候 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-11-30 23:57

    • Right click Computer
    • Click the properties
    • On the left pane select Advanced System Settings
    • Select Environment Variables
    • Under the System Variables, Select PATH and click edit,
      and then click new and add path as C:\Program
      Files\Java\jdk1.8.0_131\bin
      (depending on your installation path)
      and finally click ok
    • Next restart your command prompt and open it and try javac

提交回复
热议问题