Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] On the fly compile


  • From: lisa@xxxxxxxxxxxxxx (Lisa Retief)
  • Subject: [Advanced-java] On the fly compile
  • Date: Fri, 22 Feb 2002 14:28:33 +0200

Hi Valentin,

You could write a CustomClassLoader which compiled the classes at runtime. I
have a PDF tutorial which describes how to do exactly this, and includes
source code. It is 80K - let me know if you would like me to email this to
you.

Regards, Lisa

-----Original Message-----
From: advanced-java-admin@xxxxxxxxxxxxxxxxxxxxxx
[mailto:advanced-java-admin@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Valentin
Tablan
Sent: 22 February 2002 13:21
To: Advanced Java
Subject: [Advanced-java] On the fly compile


    Hello people,

I use javaCC to parse my own mini-language which results in some bits of
generated java code.
Is there a way to compile that code without writing to the disk and calling
javac as an external process?
I mean, starting from a String containing the source code can I get to a
class that's known to the system without touching the disk either for the
.java or the .class file?


    thanks,
    Valentin Tablan

_______________________________________________
Advanced-java mailing list
Advanced-java@xxxxxxxxxxxxxxxxxxxxxx
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java