Skip to main content

get the bytecode in byte[ ] from JavaCompiler

No replies
Joined: 2009-04-06
Points: 0


I want to use the* ( Java Compiler API ) to compile the sourcecode ( inputed as String) on the fly. and DO NOT want to store the output [.class] file into hard disk, instead I
want the output bytecode to be directly available in some form ( say byte array ).
Is this possible ?
Please tell me the class and method which I can use for this.

Thanking you in advance .. !!