Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

Compile in memory java source?

Thread view: 
exits funnel - 28 Sep 2006 16:42 GMT
Hello,

Does anyone know of a java compiler which can be launched in process to
compile an in memory representation of a java source file?  Essentially,
I generate some source on the fly and I'd like to avoid having to write
it to disk and all the messiness (permissions, cleanup, etc) that come
with that.  I was surprised to find that javac didn't (as far as I could
tell) support this interaction.  Can anyone point me towards a tool
which does what I need?  Thanks in advance.

-exits
Robert Klemme - 28 Sep 2006 17:06 GMT
> Hello,
>
[quoted text clipped - 5 lines]
> tell) support this interaction.  Can anyone point me towards a tool
> which does what I need?  Thanks in advance.

http://www.google.com/search?q=java+expression+compiler

FUP to c.l.j.s

    robert
Arne Vajhøj - 30 Sep 2006 21:14 GMT
> Does anyone know of a java compiler which can be launched in process to
> compile an in memory representation of a java source file?  Essentially,
[quoted text clipped - 3 lines]
> tell) support this interaction.  Can anyone point me towards a tool
> which does what I need?  Thanks in advance.

Part of Java 1.6 !

Arne
ddimitrov - 01 Oct 2006 01:24 GMT
Check also Javassist http://www.jboss.org/products/javassist


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.