今天在eclipse中运行一个unittest的时候,运行失败,报错:
Exception occurred executing command line.
Cannot run program... CreateProcess error=87, The parameter is incorrect
谷歌说是因为classpath太长的缘故,WINDOW官网上讲:the max command prompt line length in windows xp is 8191 characters。
解决办法当然是让classpath变短,可以删掉哪些不用的path。
如果每个path都是有用的,该怎么办呢?
可以尝试:
eclipse --> Run --> Run configuration --> 在classpath tab页中找到default classpath,右击 --> Edit --> 选中Only include exported entries
在我的环境中问题解决!