java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class MyClass with modifiers "public"

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

If you want to access functions/variables of a class from a different class they can't be private. The modifier private means that a function/variable can only be accessed from within the same class. Try the default, protected or public modifier.

Solutions on the web

via Oracle Community by 807553, 1 year ago
Class sun.applet.AppletPanel can not access a member of class MyClass with modifiers "public"
via Oracle Community by 843797, 1 year ago
Class sun.applet.AppletPanel can not access a member of class FtpExample with modifiers "public"
via Oracle Community by 807597, 1 year ago
Class sun.applet.AppletPanel can not access a member of class com.philips.demo.TVContainer with modifiers "public"
via Oracle Community by 807599, 8 months ago
Class sun.applet.AppletPanel can not access a member of class Example with modifiers ""
via Oracle Community by 843807, 1 year ago
Class sun.applet.AppletPanel can not access a member of class good with modifiers ""
via Oracle Community by 807606, 6 months ago
Class sun.applet.AppletPanel can not access a member of class myApplet with modifiers ""
java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class MyClass with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
at java.lang.Class.newInstance0(Class.java:290)
at java.lang.Class.newInstance(Class.java:249)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1621)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
at sun.applet.AppletPanel.run(AppletPanel.java:290)
at java.lang.Thread.run(Thread.java:536)

Users with the same issue

Once, 1 week ago
Once, 2 weeks ago
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 1 month ago
39 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.