You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing a simple Hello World program fails with IllegalAccessException on subsequent runs.
Create simple HelloWorld.java file:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello Drip");
}
}
Compile it: javac HelloWorld.java.
Run it with Drip: drip -cp . HelloWorld.
Repeat step 3, see exception.
Paste of console output:
ip-10-1-10-16:java jim$ drip -cp . HelloWorld
Hello Drip
ip-10-1-10-16:java jim$ drip -cp . HelloWorld
Exception in thread "main" java.lang.IllegalAccessException: Class org.flatland.drip.Main can not access a member of class HelloWorld with modifiers "public static"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:101)
at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:295)
at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:287)
at java.lang.reflect.Method.invoke(Method.java:476)
at org.flatland.drip.Main.invoke(Main.java:117)
at org.flatland.drip.Main.start(Main.java:88)
at org.flatland.drip.Main.main(Main.java:64)
Java v1.8.0_25
The text was updated successfully, but these errors were encountered:
Executing a simple Hello World program fails with
IllegalAccessException
on subsequent runs.HelloWorld.java
file:javac HelloWorld.java
.drip -cp . HelloWorld
.Paste of console output:
Java v1.8.0_25
The text was updated successfully, but these errors were encountered: