• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compilation of AST By Adding it to CompilationUnits  RSS feed

 
Daisy Smith
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I have a file(GeneratedClass.java) which is in AST form and I want it to get picked up by javac for compilation. I have tried to add the file to the compilation units and then let javac do the rest but I get NullPointerExceptions. Here is the code:

Here is the stacktrace produced:

I think the culprit is in the line but I can't be too sure. The path to GeneratedClass.java is /home/guestu/GeneratedClass.java
Thanks for the time.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!