Fail to launch application (CreateProcess error=87) in Eclipse

Leave a comment

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: