• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compilation of AST By Adding it to CompilationUnits

 
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic