Click to See Complete Forum and Search --> : java.lang.IllegalAccessError???
jehanne_darc
November 13th, 2000, 02:05 AM
I got this error :-
java.lang.IllegalAccessError: com/MyCompany/MyProject/MyClass has been marked as nonpublic to untrusted code.
i used the MS Visual Studio to package my class, and when i deploy it i got this error?
Please help?
jehanne
dogbear
November 13th, 2000, 04:39 AM
Jehanne,
Firstly, is this a compile-time or run-time error?
Secondly, check the declaration of 'MyClass'.
Is the class public?
Does it have a public constructor?
It's an interesting error. I've never seen it before.
Regards,
dogBear
PS Please Rate this Response!!!!
jehanne_darc
November 13th, 2000, 05:00 AM
I encounter this error at run-time.
Oh and actual it was an applet.
i think i was a applet security issue, but i already sign it with the Visual Studio test cert...
And MyClass was actually a public interface class for a COM object
Any clue, pls?
jehanne
Norm
November 16th, 2000, 03:00 PM
My documentation says that normally you get this type of error at compile time. To get it a run time means that you have made some program changes and only recompiled part of the classes, leaving the error undiscovered. The error is because you trying to access something to which you do not have access (for example its Private or protected).
Have you tried recompiling all of the classes?
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.