Compiler Needed Urgently
For a project i am working on, i urgently need a compiler can take a String containing the java file definition (package + imports + class), and output a byte[] containing the compiled code.
I don't believe the source to javac is available to developers (or is it?). The only other possibilities i have are to write the code to the file system and invoke javac via a Runtime.exec() which is unacceptable.
I have investigated the Kopi compiler but this is now defunct and although it worked for 1.4.2 it does not work for version 1.5
I have investigated eclipse but am a bit concerned at the time it may take to navigate their core code and find the classes necessary.
__
At the top level all i need is the following method!
byte[] compile(String javaCode);
Any suggestions gladly accepted.

