フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド数 [ 前へ | 次へ ]
toggle
M. Garcia
Cannot import LoginUtil
2011/08/08 8:09
答え

M. Garcia

ランク: Regular Member

投稿数: 107

参加年月日: 2011/05/17

最近の投稿

Hello,

I'm developping a portlet that would display a link to connect as a user and explore the portal (for demo purpose).

Here's the import line causing the error (hilighted by Eclipse) :
1import com.liferay.portlet.login.util.LoginUtil;


I have this error when deploying :
1java.lang.Error: Unresolved compilation problems:
2 The import com.liferay.portlet.login cannot be resolved
3 LoginUtil cannot be resolved


I have developped several portlets with no such import errors, this seems to be a Build Path issue but all other imports work from com.liferay*.

Thanks for enlightening me ! =)

PS : Liferay 6.0.6
Jelmer Kuperus
RE: Cannot import LoginUtil
2011/08/08 14:54
答え

Jelmer Kuperus

ランク: Liferay Legend

投稿数: 1187

参加年月日: 2010/03/10

最近の投稿

That class is located in portal-impl.jar, these are classes internal to liferay and not part of its public api
Pooja P Joshi
RE: Cannot import LoginUtil
2011/08/08 21:36
答え

Pooja P Joshi

ランク: New Member

投稿数: 10

参加年月日: 2009/11/18

最近の投稿

portal-impl classes are not accessible from plugins. You can access portal-service and portal-kernel only.

Thanks,
-Pooja
M. Garcia
RE: Cannot import LoginUtil
2011/08/09 2:46
答え

M. Garcia

ランク: Regular Member

投稿数: 107

参加年月日: 2011/05/17

最近の投稿

Well, thank you =)