Javac is not found

前端 未结 7 2015

I\'m running Windows 8 and I can not get javac to work.

I have set my PATH in environmental variables to

C:\\Program Files (x86)\\Java\\jdk1.7.0_17\\

7条回答
  •  长发绾君心
    2020-12-25 14:26

    As far as I can see you have the JRE in your PATH, but not the JDK.

    From a command prompt try this:

    set PATH=%PATH%;C:\Program Files (x86)\Java\jdk1.7.0_17\bin
    

    Then try javac again - if this works you'll need to permanently modify your environment variables to have PATH include the JDK too.

提交回复
热议问题