eclipse 运行TestNG main 出现CreateProcess error=206异常解决办法

eclipse 运行TestNG main 出现CreateProcess error=206错误解决方法

第一步 下载 bug3271933.4.2hack.zip 文件
第二步 备份 本地eclipse/plugins/org.eclipse.jdt.launching_3.*.jar
第三步 复制 bug3271933.4.2hack.zip 的class文件替换  你的org.eclipse.jdt.launching_3.*.jar中的 org/eclipse/jdt/internal/launching路径底下
第四步 修改org.eclipse.jdt.launching_3.*.jar中的META-INF /MANIFEST.MF 文件.
删除以'NAME' 开头的元素直到最后两行 , 保留最后2行(也就是留最后一个NAME打头的元素)

第五步 重启 eclipse.
下载文件地址  最后一个
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193
1 楼 th3639 2013-02-05  
Two solutions 1 .Eclipse patches: https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193 2. Shorten classpath: http://*.com/questions/201816/how-to-set-a-long-java-classpath-in-msdos-windows

To apply the Eclipse patches: 1. Download bug3271933.4.2hack.zip from the above link 2. Back up existing eclipse/plugins/org.eclipse.jdt.launching_3.4.*.jar 3. Copy and paste classes in the patch to org/eclipse/jdt/internal/launching in your org.eclipse.jdt.launching JAR (replace existing files) 4. Edit the META-INF /MANIFEST.MF file in your org.eclipse.jdt.launching JAR file by removing everything starting from the first "NAME:" entry. Make sure you leave two (2) line break characters at the end of the file. 5. Re-start eclipse

Hope this helps if you can't find an easier solution.