Carlos Amaro - 2001-06-12

Estimated Mr Hillion:
  I have recently discovered the code of dynamic java and I've found it
very useful. It's a great
work, keep going on.

  I have some doubts however, I'd like to use it from an aplication I am
making but I'm not sure
that it's possible to use it in the way I want. I'd be very grateful if
you could resolve my doubt.

  I need to execute a script of dynamic java from an external java
program using
TreeInterpreter.invokeMethod(String key, ...). I suppose key is the
target method name but I
don't  know the string syntax for that key. I tried with just the method
name and also with
getMethodIdentifier but it failed too.

  The script source code:
--------------------------------------------------
int aaa = 0;

public void target()
{
System.out.println(">> inside");
}
--------------------------------------------------

  As you can see, I haven't got any class (but I tried also).  I'd like
to call the method "target"
from a java class, how may I do that?

Thanks in advance.