创建Liferay插件项目时出错

时间:2014-09-11 19:02:18

标签: java eclipse liferay liferay-ide

我是Liferay / java / Eclipse的新手。

我正在尝试设置一个简单的Liferay插件项目,但每当我尝试创建项目并单击Finish时,我都会收到错误消息:

  

“创建Liferay插件项目时出错。”

以下是我正在使用的配置:

  

Eclipse的开普勒

     

Liferay Plugins SDK 6.2

     

Liferay Portal / Tomcat 6.2

     

java版本:1.8.0_05

环境变量设置为:

  

$ JAVA_HOME = C:\ Program Files \ Java \ jdk1.8.0_05 $ PATH = / c / Program   文件/爪哇/ jre8 / bin中

以下是错误日志中的堆栈跟踪:

org.eclipse.core.runtime.CoreException: One or more constraints have not been satisfied.
    at com.liferay.ide.project.core.util.ProjectUtil.importProject(ProjectUtil.java:1214)
    at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:177)
    at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
    at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)
    at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
    at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
    at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
    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$5.run(FacetedProject.java:1099)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
    at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
    at com.liferay.ide.project.core.util.ProjectUtil.createNewSDKProject(ProjectUtil.java:544)
    at com.liferay.ide.project.core.util.ProjectUtil.importProject(ProjectUtil.java:1210)
    ... 7 more

和我的会话数据:

eclipse.buildId=4.3.2.M20140221-1700
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

关于导致这种情况的任何想法?

2 个答案:

答案 0 :(得分:1)

通过删除jre8并使用jre7来修复问题。

答案 1 :(得分:0)

我刚从其他地方读到有关编译器的事情。这也可能是一个原因。好吧,我确实将我的改为1.6,它的效果非常好 所以你去:

Windows - >首选项> Java的>编译

在那里你可以改变它