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.

When a member (Variables, methods, and constructors) is private, it is only accessible within the same class as it is declared. Attempting to access or instantiate it from another class would throw java.lang.IllegalAccessException exception.

java.lang.IllegalAccessException: Class oracle.ide.marshal.xml.List2Dom can not access a member of class oracle.javatools.data.ListStructure with modi
fiers "private" at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) at java.lang.Class.newInstance0(Class.java:349) at java.lang.Class.newInstance(Class.java:308) at oracle.ide.marshal.xml.List2Dom.toObject(List2Dom.java:79)