How can I set my Cygwin PATH to find javac?

前端 未结 4 581
慢半拍i
慢半拍i 2020-12-04 19:46

I have a Windows 7 system on which I have installed the latest Java compiler. I also have the latest Cygwin. I want to use the Java compiler from Cygwin\'s shell. I edited t

4条回答
  •  误落风尘
    2020-12-04 20:31

    If you are still finding that the default wrong Java version (1.7) is being used instead of your Java home directory, then all you need to do is simply change the order of your PATH variable to set JAVA_HOME\bin before your Windows directory in your PATH variable, save it and restart cygwin. Test it out to make sure everything will work fine. It should not have any adverse effect because you want your own Java version to override the default which comes with Windows. Good luck!

提交回复
热议问题