java.lang.IllegalAccessException: Class MainLoader can not access a member of class LoadedClass with modifiers ""

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 843798, 1 year ago
Class MainLoader can not access a member of class LoadedClass with modifiers "public"
via Coderanch by Vadim Vararu, 1 year ago
Class test.Main can not access a member of class test1.Woman with modifiers ""
via Oracle Community by 927955, 1 year ago
Class com.servoy.eclipse.ui.property.BeanSubpropertyPropertySource can not access a member of class javax.swing.TransferHandler with modifiers "protected"
via java-forums.org by Unknown author, 2 years ago
Class org.apache.catalina.core.StandardWrapper can not access a member of class ServletExample with modifiers ""
via Oracle Community by 392 Guest, 1 year ago
Class > com.sun.jersey.core.spi.component.ComponentConstructor can not access > a member of class > com.sun.jersey.json.impl.provider.entity.JSONObjectProvider with > modifiers "" >
via coderanch.com by Unknown author, 2 years ago
Class com.att.ctp.webSvcs.TestResultsService.server.GetTestResultsTranslator can not access a member of class java.util.Calendar with modifiers "protected"
java.lang.IllegalAccessException: Class MainLoader can not access a member of class LoadedClass with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at undefined.MainLoader.main(MainLoader.java:38)

Users with the same issue

Once, 2 weeks ago
2 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
3 times, 8 months ago
42 more bugmates

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