我正在使用eclipse 4.2.1 在OSX 10.8.2下。
Eclipse中的- >偏好 - > Java - >已安装的JRE 我安装了Java SE 6。
我从eclipse市场安装了Amazon AWS SDK。
我正在尝试启动新的AWS Java Web项目 我收到以下错误:
Unable to create new AWS Java web project.
One or more constraints have not been satisfied.
Dynamic Web Module 2.5 require Java 1.5 or newer.
但我有Java SE 1.6!为什么? :)
任何想法?
感谢
答案 0 :(得分:1)
我安装了Eclipse for Java EE而不是Eclipse generic,它解决了这个问题。
答案 1 :(得分:0)
我遇到了与Windows 8.1 Pro类似的问题。我尝试了很多东西,但是我无法成功地将任何内容部署到AWS ElasticBeanstalk,直到我删除所有现有版本的Java然后安装了Java EE 7u45 win32(以前是JEE 8,32和64位) 。
但这是我完全做的事情:
希望这会有所帮助:)
答案 2 :(得分:-1)
我安装了Eclipse 4.3.2,然后在顶部添加了AWS,我得到了同样的错误。与在Java 1.7.0_51或Java 8(b132)上运行Eclipse相同。
我还得到一个错误对话框,说" X不存在"其中X是我的新项目名称。 X已创建,但.setjects中只有一个.project文件和一个文件。
我的错误日志包含:
Java Model Exception: Java Model Status [X does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:498)
at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(JavaModelManager.java:2309)
at org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo(JavaProject.java:1908)
at org.eclipse.jdt.internal.core.JavaProject.getRawClasspath(JavaProject.java:1930)
at com.amazonaws.eclipse.elasticbeanstalk.webproject.CreateNewAwsJavaWebProjectRunnable.findSdkClasspathEntry(CreateNewAwsJavaWebProjectRunnable.java:219)
at com.amazonaws.eclipse.elasticbeanstalk.webproject.CreateNewAwsJavaWebProjectRunnable.run(CreateNewAwsJavaWebProjectRunnable.java:191)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
org.eclipse.core.commands.ExecutionException: One or more constraints have not been satisfied.
at org.eclipse.wst.common.componentcore.internal.operation.FacetProjectCreationOperation.execute(FacetProjectCreationOperation.java:110)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:385)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:410)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:360)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:247)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:219)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:207)
at com.amazonaws.eclipse.elasticbeanstalk.webproject.CreateNewAwsJavaWebProjectRunnable.run(CreateNewAwsJavaWebProjectRunnable.java:150)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: One or more constraints have not been satisfied.
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:363)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:324)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modify(FacetedProject.java:339)
at org.eclipse.wst.common.componentcore.internal.operation.FacetProjectCreationOperation.execute(FacetProjectCreationOperation.java:83)
... 10 more
动态Web模块2.5需要Java 1.5或更高版本。
精氨酸,