Elipse errorcode = 87 bug solution, elipseerrorcode

Source: Internet
Author: User

Elipse errorcode = 87 bug solution, elipseerrorcode

Scenario:

In eclipse, execute the main method function.

 

Error message:

Exception occurred executing command line.
Cannot run program "D: \ soft \ Java \ jdk1.6.0 _ 12 \ bin \ javaw.exe" (in directory "E: \ DevCode \ Ali \ 20121008_ordercenter"): CreateProcess error = 87, 2. commandid '''

Analysis:

Some people on the Internet say that the classpath path is too long. Some people say that the path of the Maven repository is too long. In short, it is correct because of the long path, however, many solutions on the Internet are to shorten the path, which is opportunistic because the path is too long, the problem cannot be solved even if the root directory of the maven respositroy path is adjusted slightly.

The correct solution should be solved from the root cause of eclipse. This problem is caused by a BUG in eclipse and requires patches to completely solve the problem.

Eclipse bug report: https://bugs.eclipse.org/bugs/show_bug.cgi? Id = 327193

Solution:

 

1. Download the appropriate patch on the eclipse bug report page based on your Eclipse version. For example, if my eclipse indigo version is 3.6, You need to download the patch for version 3.6.

2. decompress the downloaded file and obtain the following files.

3. Go to the Eclipse installation directory $ Eclipse_HOME/plugins/and find org. eclipse. jdt. launching_XXX.XXX.jar. eclipse. jdt. launching_3.6.0.v20110509.jar), decompress the file

4. Replace the four files of the downloaded patch with the same path org. eclipse. jdt. internal. launching of the decompressed jar.

5. Open the META-INF/MANIFEST. MF in the decompressed jar root directory in a text editor and delete all the text similar to the following starting with "Name. In my version, it starts from row 26th and all the subsequent versions are deleted. In addition, note that after deletion, you must leave two blank lines at the end. Save.

6. Return to the root directory of the decompressed jar and use the package command jar cf org. eclipse. jdt. launching_XXX.XXX.jar *. * (the jar file name must be the same as your original name.

7. Package org. eclipse. jdt. launching_XXX.XXX.jar, replace the jar with $ Eclipse_HOME/plugins/, and restart Eclipse.

 




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.