简体   繁体   中英

Why is creating a new project in AWS SDK for Java (Eclipse IDE) throwing a NoSuchMethodError?

I am getting started with the AWS SDK for Java in Eclipse IDE - have set it up using this link.

Went to start programming and selected Create a New AWS Java Project (using one of the samples provided, in a new workspace), and pressed OK and it returned a NoSuchMethodError (copied & pasted below). Tried to make a new project without using a sample and still got the same error. What is going wrong?

void org.eclipse.m2e.core.project.IProjectConfigurationManager.createSimpleProject(org.eclipse.core.resources.IProject, org.eclipse.core.runtime.IPath, org.apache.maven.model.Model, java.lang.String[], org.eclipse.m2e.core.project.ProjectImportConfiguration, org.eclipse.core.runtime.IProgressMonitor)'
'void org.eclipse.m2e.core.project.IProjectConfigurationManager.createSimpleProject(org.eclipse.core.resources.IProject, org.eclipse.core.runtime.IPath, org.apache.maven.model.Model, java.lang.String[], org.eclipse.m2e.core.project.ProjectImportConfiguration, org.eclipse.core.runtime.IProgressMonitor)

The AWS Toolkit doesn't always support the latest Eclipse IDE versions. Try installing Eclipse 2021-12 version and install the AWS Toolkit there.

I had the same problem. Uninstalled Eclipse & installed 2021-12 and it worked for me.

在此处输入图像描述

Just to add to this thread: if you take a look at the repo for the AWS Eclipse plugin here: https://github.com/aws/aws-toolkit-eclipse you will see that there have not been any updates to this plugin for a 2 years, so I guess you may need to consider using another IDE for AWS Java development.

Perhaps consider a new IDE and/or a different programming language. Neither are very low effort options =/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM