Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sam E
package com.liferay.mozilla.javascript does not exist
August 16, 2010 4:47 AM
Answer

Sam E

Rank: Liferay Master

Posts: 660

Join Date: March 2, 2009

Recent Posts

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
August 16, 2010 4:37 PM
Answer

Sam E

Rank: Liferay Master

Posts: 660

Join Date: March 2, 2009

Recent Posts

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
August 16, 2010 6:15 PM
Answer

Sam E

Rank: Liferay Master

Posts: 660

Join Date: March 2, 2009

Recent Posts

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
August 17, 2010 7:08 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

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
March 16, 2012 8:11 AM
Answer

A S

Rank: New Member

Posts: 1

Join Date: March 16, 2012

Recent Posts

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