[英]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.我开始在 Eclipse IDE 中使用 AWS SDK for Java - 已使用此链接进行设置。
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).开始编程并选择创建一个新的 AWS Java 项目(使用提供的示例之一,在新的工作区中),然后按确定,它返回了一个 NoSuchMethodError(在下面复制和粘贴)。 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. AWS 工具包并不总是支持最新的 Eclipse IDE 版本。 Try installing Eclipse 2021-12 version and install the AWS Toolkit there.尝试安装 Eclipse 2021-12 版本并在那里安装 AWS 工具包。
I had the same problem.我有同样的问题。 Uninstalled Eclipse & installed 2021-12 and it worked for me.卸载了 Eclipse 并安装了 2021-12,它对我有用。
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.只是添加到这个线程:如果你在这里查看 AWS Eclipse 插件的 repo: https ://github.com/aws/aws-toolkit-eclipse 你会看到这个插件没有任何更新用了 2 年,所以我想您可能需要考虑使用另一个 IDE 进行 AWS Java 开发。
Perhaps consider a new IDE and/or a different programming language.也许考虑使用新的 IDE 和/或不同的编程语言。 Neither are very low effort options =/也不是很省力的选择=/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.