フォーラム

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

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
Sam E
package com.liferay.mozilla.javascript does not exist
2010/08/16 4:47
答え

Sam E

ランク: Liferay Master

投稿: 660

参加年月日: 2009/03/02

最近の投稿

Hi,

With liferay EE SP4 and its plugin-sdk, I got the following error when I am executing "ant deploy":

 1
 2
 3
 4merge:
 5compile-java:
 6    [javac] Compiling 4 source files to C:\liferay-ee-sp4\plugins\portlets\hello-world-portlet\docroot\WEB-INF\classes
 7    [javac] C:\liferay-ee-sp4\plugins\portlets\hello-world-portlet\docroot\WEB-INF\src\com\xyz\myco\contact_us\util\WebFormUtil.java:18: package com.liferay.mozilla.javascript does not exist
 8    [javac] import com.liferay.mozilla.javascript.Context;
 9    [javac]                                       ^
10    [javac] C:\liferay-ee-sp4\plugins\portlets\hello-world-portlet\docroot\WEB-INF\src\com\xyz\myco\contact_us\util\WebFormUtil.java:19: package com.liferay.mozilla.javascript does not exist
11    [javac] import com.liferay.mozilla.javascript.Scriptable;
12    [javac]                                       ^
13    [javac] C:\liferay-ee-sp4\plugins\portlets\hello-world-portlet\docroot\WEB-INF\src\com\xyz\myco\contact_us\util\WebFormUtil.java:20: package com.liferay.mozilla.javascript does not exist
14    [javac] import com.liferay.mozilla.javascript.ScriptableObject;
15    [javac]                                       ^
16    [javac] C:\liferay-ee-sp4\plugins\portlets\hello-world-portlet\docroot\WEB-INF\src\com\xyz\myco\contact_us\util\WebFormUtil.java:188: cannot find symbol
17    [javac] symbol  : class Context
18    [javac] location: class com.xyz.myco.contact_us.util.WebFormUtil
19    [javac]         Context context = Context.enter();


Your suggestion of solving this error is highly appreciated/
Thanks
Sam
Sam E
RE: package com.liferay.mozilla.javascript does not exist
2010/08/16 16:37
答え

Sam E

ランク: Liferay Master

投稿: 660

参加年月日: 2009/03/02

最近の投稿

Hi, anyone got a quick answer for what jar file does com.liferay.mozilla.javascript belongs to?

Thanks
Sam
Sam E
RE: package com.liferay.mozilla.javascript does not exist
2010/08/16 18:15
答え

Sam E

ランク: Liferay Master

投稿: 660

参加年月日: 2009/03/02

最近の投稿

I found something strange is that the util-bridges package is using com.liferay.mozilla package, and the web-forms portlet is using it. I can even deploy the web-forms portlet to liferay ee sp4. But the command find . -name "mozilla" is failed, that mean I cannot find a mozilla package in liferay src tree.

How could this happened?

Thanks
Sam
Shagul Khajamohideen
RE: package com.liferay.mozilla.javascript does not exist
2010/08/17 7:08
答え

Shagul Khajamohideen

ランク: Liferay Master

投稿: 759

参加年月日: 2007/09/27

最近の投稿

The package is part of liferay-rhino.jar. I am not aware of the source location and customization that was done to Rhino.
A S
RE: package com.liferay.mozilla.javascript does not exist
2012/03/16 8:11
答え

A S

ランク: New Member

投稿: 1

参加年月日: 2012/03/16

最近の投稿

I may be misunderstanding here, but shouldn't this package be listed in the API?