简体   繁体   English

AWS Java SDK无法在Eclipse IDE上运行

[英]AWS Java SDK not working on Eclipse IDE

I installed the AWS Toolkit in Eclipse on Windows. 我在Windows上的Eclipse中安装了AWS Toolkit。 Everything works except for the "Start New Java Project". 除“启动新的Java项目”外,其他所有东西都起作用。 When I select this option, nothing happens. 当我选择此选项时,什么也不会发生。 The New AWS JAva Project does open the first time after installing the AWS Toolkit but it only report that the AWS Java SDK is being installed and does not let me create a new project. 在安装AWS Toolkit之后,New AWS JAva Project确实会第一次打开,但它仅报告正在安装AWS Java SDK,并且不允许我创建新项目。

I tried on two different computers and verified that the AWS Java SDK was installed. 我在两台不同的计算机上尝试过,并验证是否已安装AWS Java SDK。

I tried this with and without installing the Android SDK. 无论是否安装Android SDK,我都尝试过。

In the "AWS SDK For Java" preference, I tried all sorts of options for the "SDK directory". 在“ AWS SDK For Java”首选项中,我尝试了“ SDK目录”的各种选项。 To no avail. 无济于事。

What am I doing wrong? 我究竟做错了什么?

Thanks. 谢谢。

It happens only because of your incompatibility of AWS toolkit and your eclipse version. 发生这种情况仅是因为您与AWS工具箱和Eclipse版本不兼容 So add url of eclipse plugin as per version of eclipse. 因此,请按照eclipse版本添加eclipse插件的url。 This will solve your problem.! 这将解决您的问题。 follow this: http://docs.aws.amazon.com/AWSToolkitEclipse/latest/GettingStartedGuide/tke_setup.html 请遵循以下步骤: http : //docs.aws.amazon.com/AWSToolkitEclipse/latest/GettingStartedGuide/tke_setup.html

Seems that some versions of eclipse have had issues (during upgrades) with AWS toolkit as noted by AWS here 似乎某些eclipse版本(升级期间)在AWS工具箱中有问题,如AWS 在此处所述

Some versions of Eclipse, (notably Mars and Neon), may fail to fetch the latest artifacts due to a bug in old versions of the Oomph plugin. 某些版本的Eclipse(尤其是Mars和Neon)可能由于Oomph插件的旧版本中的错误而无法获取最新的工件。 To work around this issue: 要变通解决此问题:

  • Make sure that you're using https://aws.amazon.com/eclipse/site.xml as the AWS Toolkit for Eclipse update site. 确保您使用https://aws.amazon.com/eclipse/site.xml作为AWS Toolkit for Eclipse更新站点。
  • Delete the ~/.eclipse/org.eclipse.oomph.p2/cache/ directory to remove cached content. 删除〜/ .eclipse / org.eclipse.oomph.p2 / cache /目录以删除缓存的内容。
  • Install the latest version of Oomph (Eclipse Installer). 安装最新版本的Oomph(Eclipse安装程序)。

I was using Eclipse Mars Java EE linux x86_64 version and faced similar issues where wizard for new AWS lambda project, for example, never completes. 我使用的是Eclipse Mars Java EE linux x86_64版本,并且遇到了类似的问题,例如,新的AWS lambda项目的向导从未完成。

I have retried the same wizard in Eclipse Oxygen Java linux86_64 version and it seems to work as expected. 我在Eclipse Oxygen Java linux86_64版本中重试了相同的向导,它似乎按预期工作。

I would try and use maven to grab the AWS SDK. 我会尝试使用maven来获取AWS开发工具包。

Check out this blog, follow back up with issues... 看看这个博客,跟进问题...

http://blog.cloudbees.com/2012/12/amazon-web-services-and-platform-as_11.html http://blog.cloudbees.com/2012/12/amazon-web-services-and-platform-as_11.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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