Javac is not found

前端 未结 7 2029

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:37

    I'm searched many answers that suggest me to type in cmd:

    set path = "%path%;c:program files\java\jdk1.7.0\bin"
    

    but this is WRONG!

    the right solution is that you leave "set" and just type

    path = %path%;c:program files\java\jdk1.7.0\bin
    

    P/s: of course you have to replace "jdk1.7.0" folder by your current java version folder. This works well on win 7 32bit, but I think it also works on win 8 - try it!

提交回复
热议问题