javaamazon-web-serviceseclipsemavenaws-sdk-java

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)

Solution

  • 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.

    enter image description here