Re: compiler class
Jean Pierre Daviau wrote:
"Gordon Beaton" <n.o.t@for.email> a =E9crit dans le message de
news: 4596b037$0$22507$8404b019@news.wineasy.se...
On Sat, 30 Dec 2006 12:18:48 -0500, Jean Pierre Daviau wrote:
...programmatically
compile a class with a third party compiler.
...
Sun recommends the following procedure,
.....
http://java.sun.com/developer/JDCTechTips/2003/tt0722.html#2
Is this possible with jdk1.1.8?
What did your tests indicate?
Note 1: That the compiler will probably only be able
to write the 1.1 class fromat, & will only be able to
compile code up to the Java version the end-user
has installed, though I doubt it could ever handle
such language developments as generics or
annotations - in any form.
There is a java.lang.Compiler class there too...
I would prefer because of the size of tools.jar in 1.2 + versions
of jdk
Note 2: That the (very not publicly) documented classes
of the com.sun.* package heirarchy are undocumented
for a variety of reasons, one of which is that Sun
reserved the right to move the 'entry points' to the code
at will. AFAIR - their were a number of changes that
affected the developers of Apache/Tomcat.
Andrew T.