Java 无法找到或加载主类com.liferay.portal.tools.SassToCssBuilder
我正在使用Liferay 6.2 CE。在部署portlet时,会显示此错误消息Java 无法找到或加载主类com.liferay.portal.tools.SassToCssBuilder,java,xml,eclipse,liferay,liferay-6,Java,Xml,Eclipse,Liferay,Liferay 6,我正在使用Liferay 6.2 CE。在部署portlet时,会显示此错误消息 Buildfile: /home/matej/liferay-plugins-sdk-6.2/portlets/RegistrationForm-portlet/build.xml war: [java] Error: Could not find or load main class com.liferay.portal.tools.SassToCssBuilder BUILD FAILED /hom
Buildfile: /home/matej/liferay-plugins-sdk-6.2/portlets/RegistrationForm-portlet/build.xml
war:
[java] Error: Could not find or load main class com.liferay.portal.tools.SassToCssBuilder
BUILD FAILED
/home/matej/liferay-plugins-sdk-6.2/build-common.xml:2468: The following error occurred while executing this line:
/home/matej/liferay-plugins-sdk-6.2/build-common.xml:2473: The following error occurred while executing this line:
/home/matej/liferay-plugins-sdk-6.2/build-common.xml:322: The following error occurred while executing this line:
/home/matej/liferay-plugins-sdk-6.2/build-common.xml:2104: The following error occurred while executing this line:
/home/matej/liferay-plugins-sdk-6.2/build-common.xml:175: Java returned: 1
Total time: 5 seconds
昨天一切都很好。。。我完成了工作,保存了进度并关闭了eclipse。今天,在使用我的项目打开eclipse之后,将显示此错误消息。我使用的是liferay-plugins-sdk-6.2,所以不知道问题出在哪里。我将感谢任何帮助。请阅读。同样的问题。谢谢您的回复,但是正如David在主题中所写的,“您得到它的原因是您正在使用6.1 SDK尝试为6.0门户构建您的portlet。”但我在6.2门户上使用6.2 SDK,这就是它工作的原因,到目前为止,您创建的portlet是否定义为使用SDK 6.2在liferay门户上构建和运行?是的,当然,我下载并切换到了新的SDK插件,同样的问题,今天它很疯狂…所以我使用了新的捆绑包,SDK也是eclipse,运行良好。。。把它留在这里继续使用。你最终是如何解决它的@MatejŠípka?我面临着同样的问题,一个新的6.2 GA6捆绑包。