简体   繁体   English

为什么在 AWS SDK for Java (Eclipse IDE) 中创建新项目会抛出 NoSuchMethodError?

[英]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.

相关问题 如何在 Java AWS SDK 中设置基本 url? - How to set base url in Java AWS SDK? AWS Java SDK - 无法通过区域提供商链找到区域 - AWS Java SDK - Unable to find a region via the region provider chain 使用 S3AsyncClient 从 AWS Java SDK 2 中的 GetObjectResponse 获取 S3Object InputStream? - Get an S3Object InputStream from a GetObjectResponse in AWS Java SDK 2 Using S3AsyncClient? 尝试使用 AWS Java v2 SDK 完成分段上传时出现 S3Exception - S3Exception when trying to complete multi-part upload using the AWS Java v2 SDK AWS Transcribe Java SDK:内部故障。 请重试您的请求 - AWS Transcribe Java SDK: Internal Failure. Please try your request again AWS S3 Java SDK - ListVersionsRequest 仅获取最新版本 - AWS S3 Java SDK - ListVersionsRequest Get Only Latest Versions 使用 AWS CDK 创建 AWS DMS 任务 - Creating an AWS DMS task using AWS CDK Eclipse AWS Lambda 错误:在您的项目根目录中找不到 Serverless.template - Eclipse AWS Lambda Error : No Serverless.template found in your project root 使用 AWS Java SDK 执行 PutItem 时出现“配置文件不包含配置文件的凭据”错误 - 'Profile file contained no credentials for profile' error when doing PutItem using AWS Java SDK 创建容量提供程序时出现 AWS ECS 错误 - AWS ECS Error When Creating Capacity Provider
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM