[854] in java-interest
"Java compiler" object
daemon@ATHENA.MIT.EDU (Degrande_Samuel)
Fri Aug 11 17:22:05 1995
Date: Fri, 11 Aug 1995 16:34:38 +0200
From: degrande@lifl.fr (Degrande_Samuel)
To: java-interest@java.sun.com
I would like to use the java compiler from inside a Java application,
and so I tried to use the java.tools.javac.Main class.
I tried to use Main.main() to launch a compilation, but it seems that
this method exits the application. So I used the compile()
instance-method, which seems to work.
I used the first argument of the Main() constructor to define where to
redirect compiler's output.
Everything seems to be ok, but it's just a bit a hacking. So :
- Is the java.tools.javac.Main class stable enough so that I can use its methods ?
- Is there some documentations somewhere ?
- Is it possible to store the compiled class in an array of bytes, instead
of a file (so I could load it with a ClassLoader...) ?
Thanks,
Sam
---
Samuel Degrande LIFL - URA 369 CNRS - Bat M3
Phone: (33)20.43.47.20 USTL - Universite de Lille 1
Fax: (33)20.43.65.66 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com