I have an application where I need to dynamically generate Java source code,
compile it, load it and then execute that code. I see the Ant API as an
excellent method to help me get this done.
However, I haven't been able to get it to work.
After setting everything up, I get the following exception:
[java] Exception in thread "main" java.lang.NullPointerException
[java] at
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:425)
[java] at org.apache.tools.ant.Target.execute(Target.java:153)
[java] at org.apache.tools.ant.Project.runTarget(Project.java:898)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:536)
I downloaded the source and line 425 in Javac doesn't make any sense.
So I guess my next step is to be able to recompile ant and then add
some logging so I can see what is happening.
However, I'm sure that I'm not doing anything really difficult...I'm
just doing it wrong ;-). A "compile Hello World"-type example would
save me BUNCHES of work and would be MUCH appreciated.
Thanks.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>