Kelly O'Hair's Weblog (blogs.sun.com)
Thursday Aug 13, 2009
Windows PATH Pecking Order
Just a reminder to the crazy JDK Windows developers out there ;^) The order of paths in the PATH variable is critical:
First Visual Studio
Then CYGWIN
Lastly the Windows system32 directories
The link.exe needs to come from Visual Studio, not CYGWIN. And the standard Unix utility named tools (like grep) need to come from CYGWIN.
-kto
Posted at 09:56AM Aug 13, 2009 by kto in Java | Comments[2]












my solution is "rm cygwin/bin/link.exe" just to be sure..
Posted by Dmitri Trembovetski on August 13, 2009 at 03:51 PM PDT #
i mv cygwin's link.exe to another name.
it's very simple to start a visual studio command prompt and call cygwin.bat from there. translating MSVARS.BAT to a cygwin script is horrible.
Posted by weijun on August 13, 2009 at 05:55 PM PDT #