我正在使用Eclipse Helios和Liferay Portal版本6。
我已经安装了Liferay IDE插件,并安装了在此平台上工作所需的软件。
但是当我尝试从Eclipse打开portlet.xml文件时,我仍然有一个错误:
Problems occurred when invoking code from plug-in: "org.eclipse.jface".
(错误日志) An error has occurred. See error log for more details.
org/eclipse/sapphire/modeling/ModelElementType
(错误视图)
有谁知道我怎么解决这个问题吗?
您安装的Sapphire版本与Liferay IDE不兼容。解决这个问题的步骤如下:
- 卸载Liferay IDE功能
- 卸载所有蓝宝石功能
- 从Helios更新网站重新安装Liferay IDE: http://releases.liferay.com/tools/ide/eclipse/helios/stable这样做将自动安装一个兼容版本的蓝宝石。
- 尝试重新打开portlet.xml
注意:卸载一个特性:
- 进入Help> About> Installation> Installed Software选项卡
- 选择要卸载的功能
- 单击Uninstall 重启