Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] On the fly compile
- From: V.Tablan@xxxxxxxxxxxxxxx (Valentin Tablan)
- Subject: [Advanced-java] On the fly compile
- Date: Fri, 22 Feb 2002 13:29:12 -0000
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
>
>
- Follow-Ups:
- [Advanced-java] On the fly compile
- From: Peter Humphries
- [Advanced-java] On the fly compile
- From: Terry Williams
- [Advanced-java] On the fly compile
- From: kkonaka@xxxxxxx
- [Advanced-java] On the fly compile
- 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
- 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):