Hello,
Is there a way to invoke the
java compiler internally from a program? What I want to do is create java code dynamically and give the user some class files.
OK, a nice way would be to find the path to JAVA_HOME and invoke the compiler externally.
On the other hand I guess I maybe have to distribute a compiler with my app (for the users who have only JRE installed). Can I distribute SUN's javac? If yes what files will I have to include apart from the compiler file (assuming different versions for different platforms)?
Tnx,
Tom.