How to put the ".class" file in Memory with Javac?

The J2SE 6 RC have an tool : javax.tools.JavaComplier. I can use it to compile the source code in memory( I implemented an JavaFileObject).

But the compiler aways put the output file(.class) to file system. It;s not my want to do . I am writing an IDE ,I use javac to determine the code error after the user's typing. So complier is used a lot , writing to file system is a time consuming job.

I also want to use the byte code(".class" file) for reflection , so if the JavaCompiler can put the output file in memory and then I can reflect it.

My current solution is puting the output file to file system then use Class.forName() to reload it in memory then reflect it. It seems a useless IO operation with file system.

How can I do with it?

Thanks!

[788 byte] By [CoffeeAndPufa] at [2007-10-3 10:10:08]
# 1
Those 'useless' I/O operations are one or two out of thousands that are implied by compiling a Java source file.I wouldn't worry about it.
ejpa at 2007-7-15 5:30:01 > top of Java-index,Developer Tools,Java Compiler...