December 2, 2011 by huionn
Today I encountered the error “CreateProcess error=87” in Eclipse when lauching a JUnit test. The reason of this error is basically the extremely long class path that over the limit of OS console max length (I am developing with Nexeo SDK which has over hundred of jars.)
In Windows XP, I have to move the folder to shorten the classpath. In Windows Vista/7, there is an easier workaround – mklink (symbolic link in NTFS)
The command is: mklink /D /J <SHORT PATH> <LONG PATH>
The result is that the folder is accessible from both path without duplication.
Then just point the sdk to new shorten path.