Elipse errorcode = 87 bug Solution

Source: Internet
Author: User

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.

 

Elipse errorcode = 87 bug Solution

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.