Error in loading src/java/security/AccessController.js

17 views
Skip to first unread message

ernit...@gmail.com

unread,
Aug 28, 2008, 5:33:28 PM8/28/08
to Java2Script
Hi,

I am new to Java2Script.

I am having a simple Java application, when I am running it using
Java2script, I am getting the following errors

[Java2Script] Error in loading src/java/security/AccessController.js!
[Java2Script] Error in loading src/java/security/
PrivilegedExceptionAction.js!

Can anyone help me in finding out why I am getting this error?

Thanks in advance.

- Nitin

Zhou Renjian

unread,
Aug 28, 2008, 9:40:19 PM8/28/08
to java2...@googlegroups.com
Hi Nitin,

Could you try to find out where java.security.AccessController is used or referenced, and try to not use it or ignore it by wrapping with @j2sNative:

/**
 * @j2sNative
 */
{
...
}

And giving us the snippet code may also help.
 
Regards,
Zhou Renjian

ernit...@gmail.com

unread,
Aug 29, 2008, 2:12:27 PM8/29/08
to Java2Script
Hi Zhou,

I am still getting the same error however now program continued and
finished properly even after giving this error (when the main class I
am running is under a package).

Earlier I was running a class which was not under any package.

Thanks,
Nitin Goel

On Aug 28, 6:40 pm, "Zhou Renjian" <zhourenj...@gmail.com> wrote:
> Hi Nitin,
>
> Could you try to find out where java.security.AccessController is used or
> referenced, and try to not use it or ignore it by wrapping with @j2sNative:
>
> /**
>  * @j2sNative
>  */
> {
> ...
>
> }
>
> And giving us the snippet code may also help.
>
> Regards,
> Zhou Renjian
>

ernit...@gmail.com

unread,
Aug 29, 2008, 1:58:25 PM8/29/08
to Java2Script
Hi Zhou,

Thanks for your quick reply. I am not using
java.security.AccessController or
java.security.PrivilegedExceptionAction any where in my application.

It's simple Core Java application only, it's not even using Threading.

I am having bunch of classes so I am not sure which code snippet I
should give it you.

Can I some how get the error trace while running J2S and find out
which code snippet is causing the problem?

I am just getting this

Powered by Java2ScriptDriver../../../tools/Eclipse/eclipse-java-europa-
win32/eclipse/plugins/net.sf.j2s.lib_1.0.0/j2slib/java/lang/
reflect.z.jsloaded.
[Java2Script] Error in loading src/java/security/AccessController.js!
[Java2Script] Error in loading src/java/security/
PrivilegedExceptionAction.js!

Thanks,
Nitin Goel

On Aug 28, 6:40 pm, "Zhou Renjian" <zhourenj...@gmail.com> wrote:
> Hi Nitin,
>
> Could you try to find out where java.security.AccessController is used or
> referenced, and try to not use it or ignore it by wrapping with @j2sNative:
>
> /**
>  * @j2sNative
>  */
> {
> ...
>
> }
>
> And giving us the snippet code may also help.
>
> Regards,
> Zhou Renjian
>

Sebastian Gurin

unread,
Sep 1, 2008, 9:16:30 AM9/1/08
to java2...@googlegroups.com
did you try to add an empty AccessController.js file in the proper location inside j2slib directory?
--
Sebastian Gurin <sgu...@softpoint.org>
Reply all
Reply to author
Forward
0 new messages