SSH Framework Java.lang.NoSuchMethodError:antlr.collections.AST.getLine () I error

Source: Internet
Author: User

Cause: Because of the antlr-2.7.2.jar of struts, there is a jar packet conflict because of the lower version of the Antlr-2.7.7.jar that comes with hibernate, so you want to remove the previous low version.

Since the MyEclipse added struts performance is not placed in the project Lib, but the myeclipse comes from, so the deletion may be troublesome, we can click the operation to remove, insulation feel more effective:

Search for Antlr-2.7.2.jar under C:\Users\shymain\MyEclipse Professional 2014\configuration/org.eclipse.osgi/bundles,

Will be searched, all deleted (maybe some are below 1.3, some are below 2.1).

Then in the C:\Users\shymain\MyEclipse Professional 2014\/plugins search *struts*.jar, then a different jar package will appear, select a file, open the way to select the compressed package,

Locate the Com.genuitec.eclipse.cross.easystruts.eclipse_8.6.0.me201007231647.jar package and delete the Antlr-2.7.2.jar under Lib and data/1.3 ( This is removed from the 1.3 inside)

And then open the Com.genuitec.eclipse.struts2_8.6.0.me201007292038.jar package, delete the Antlr-2.7.2.jar under Data/2.1/core (this is 2.1 inside)

Here, two jar packages are removed from Struts1.3 and 2.1 because two jars are in the common directory, so after deletion, the Antlr-2.7.2.jar package can no longer be found in two packages and loaded when the Myeclipse,myeclipse is run.

Note: During the removal of the jar package, there may be a phenomenon that cannot be removed, and you can close the MyEclipse before you proceed.

SSH Framework Java.lang.NoSuchMethodError:antlr.collections.AST.getLine () I error

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.