title: Generating a new java class by writing java program in another java class
body: <p>I want to create a java program that generates another java class in the same project. For example in the class Dragon.java, i want to write java code that creates another java class called fire.java. I do not want to use any GUI from eclipse, just pure code that generates another class from the execution of written programming in java. </p>
  
  <p>I have tried making objects of a non existent class in hopes of the program automatically producing a class with that name. </p>
  
  <p>Again, it doesn't have to be just a java class, is there a way to make other forms of files also? for example fol.flow, or of different names. </p>