Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] On the fly compile
- From: peter.humphries@xxxxxxxx (Peter Humphries)
- Subject: [Advanced-java] On the fly compile
- Date: Fri, 22 Feb 2002 13:34:16 -0000
I believe Sun's compiler can't be used like this, because the publicly visible API operates on files. Haven't tried it myself but I seem to remember reading that Jikes can be used as an in-memory compiler. Hope this helps, Peter Humphries Jyra Research Inc www.jyra.com Application Performance Monitoring ----- Original Message ----- From: "Valentin Tablan" <V.Tablan@xxxxxxxxxxxxxxx> To: "'Advanced Java'" <advanced-java@xxxxxxxxxxxxxxxx> Sent: Friday, February 22, 2002 1:29 PM Subject: Re: [Advanced-java] On the fly compile > I'm sorry if I'm missing something but I believe that the > CompilingClassLoader makes an external call to javac in order to compile the > .java source and then reads the resulting .class file from the disk creating > a Class object out of its bytes. How exactly would you change this to use > streams/readers? > > What I need is a 100% java way to access javac(or any other java compiler), > send it the source as a String/stream and get back the bytes for the > compiled class without touching the disk at any time. > > thanks, > Valentin > > > Having just read through that document, if you take a look at the source > at the > > end of the document it is reasonably easy to modify it to operate using an > > InputStream & and an OutputStream (if necessary). > > > > Terry > > > > _______________________________________________ > > Advanced-java mailing list > > Advanced-java@xxxxxxxxxxxxxxxxxxxxxx > > http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java > > > > > > _______________________________________________ > Advanced-java mailing list > Advanced-java@xxxxxxxxxxxxxxxxxxxxxx > http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
- References:
- [Advanced-java] On the fly compile
- From: Lisa Retief
- [Advanced-java] On the fly compile
- From: Valentin Tablan
- [Advanced-java] On the fly compile
- From: Terry Williams
- [Advanced-java] On the fly compile
- From: Valentin Tablan
- [Advanced-java] On the fly compile
- Prev by Date: [Advanced-java] On the fly compile
- Next by Date: [Advanced-java] On the fly compile
- Previous by thread: [Advanced-java] On the fly compile
- Next by thread: [Advanced-java] On the fly compile
- Index(es):