N
Neroku
Hello, Consider I have two folders: Ap and Bp. Each folder is a package
and has a source file, A.java and B.java respectively.
Those files contain the code below:
----------A.java-----------------------------------
package Ap;
public class A
{
public static void foo()
{
System.out.println("From A.foo()");
}
}
----------B.java-------------------------------
package Bp;
class B
{
public static void main(String []args)
{
Ap.A.foo();
}
}
It compiles fine, but when I run the B main method I get the following
error:
IllegalAccessException: Class
koala.dynamicjava.interpreter.EvaluationVisitor can not access a member
of class Bp.B with modifiers "public static"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
I do not acces any member of class Bp.B, Any ideas??
TIA
and has a source file, A.java and B.java respectively.
Those files contain the code below:
----------A.java-----------------------------------
package Ap;
public class A
{
public static void foo()
{
System.out.println("From A.foo()");
}
}
----------B.java-------------------------------
package Bp;
class B
{
public static void main(String []args)
{
Ap.A.foo();
}
}
It compiles fine, but when I run the B main method I get the following
error:
IllegalAccessException: Class
koala.dynamicjava.interpreter.EvaluationVisitor can not access a member
of class Bp.B with modifiers "public static"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
I do not acces any member of class Bp.B, Any ideas??
TIA