Compiling java code from a running java application

How does compiling of java code from a running java application work?I found a class: com.sun.tools.apt.main.JavaCompilerbut cannot find any documentation of how this class works.
[214 byte] By [Pertssona] at [2007-10-3 4:18:17]
# 1

> How does compiling of java code from a running java

> application work?

Probably most reliably using Runtime.exec().

> I found a class:

> com.sun.tools.apt.main.JavaCompiler

> but cannot find any documentation of how this class

> works.

For a purpose. You are not supposed to use this class. With the next JRE release or implementation, it might not exist anymore - it's not part of the standard API.

CeciNEstPasUnProgrammeura at 2007-7-14 22:19:56 > top of Java-index,Java Essentials,Java Programming...
# 2
Ok, but is there any other way then using Runtime.exec() of doing what I want?
Pertssona at 2007-7-14 22:19:56 > top of Java-index,Java Essentials,Java Programming...