I have downloaded and implemented the FileClassLoader tutorial on Suns
Website.
The test case works just fine.
Now I'm trying to :
1) Write a java source file into a directory.
2) The java class in the file implements an interface MyInterface.
3) The java class is compiled with
Runtime.getRuntime().exec(commandline);
When I try to run the app I get the following message:
[Session started at 2005-03-23 12:22:12 +0100.]
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.IllegalAccessError: class TestClass cannot access its
superinterface MyInterface
java.lang.IllegalAccessError: class TestClass cannot access its
superinterface MyInterface
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
at FileClassLoader.loadClass(FileClassLoader.java:39)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at JavaPlot$newActionClass.actionPerformed(JavaPlot.java:175)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:
1819)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractB
utton.java:1872)
<snip>
Thankful for any ideas on how to fix this.
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden