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.

[839 byte] By [robin_drewa] at [2007-10-1 8:42:18]
# 1
http://www.jcp.org/en/jsr/detail?id=199
tschodta at 2007-7-9 22:57:39 > top of Java-index,Developer Tools,Java Compiler...
# 2
well, it's not really urgent but let's give it a shot anyway as I'm bored.There is a package com.sun.javac which contains the compiler. There is no documentation for this package but you might be able to figure out how it works.It's contained in tools.jar
jwentinga at 2007-7-9 22:57:39 > top of Java-index,Developer Tools,Java Compiler...