Tommy Nordgren <email@hidden> wrote:
>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);
I take it you mean SUCCESSFULLY compiled. That is, the exception is not
being thrown by the compiler.
>When I try to run the app I get the following message:
I take it you mean "the newly compiled app".
>[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
What classpath are you passing in your commandLine?
Classpaths are not heritable unless they happen to be in the CLASSPATH
env-var. That's not something you can rely on.
Also, I hope your commandLine is a String[], not a single String, or you're
in for a world of grief. And exactly what is the contents of your
commandLine?
-- GG
_______________________________________________
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