🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18278

Re: Can my application run code that it builds - on the fly compiling?

#18278
From: Chris Hill
Date: Wed, 15 Jul 1998 00:00
24 lines
1319 bytes
It is possible to dynamically load a *.class file, but not a *.java
file.  The java source code needs to be compiled to bytecode before it
can be processed by the Java virtual machine.  If this is good enough
for your , I think the two classes to start with are ClassLoader and
Class.  


On Tue, 14 Jul 1998 20:03:52 -0500, "Bob Byron" <bbyron@radit.com>
wrote:

>Philosophical question - Can a running Java application write out Java code
>to a file - then reference that Java code?  That would be convenient.
>Basically, I would like my application to be able to have its own command
>language and it would be more convenient if I did not have to design one,
>but use Java to compile brand new code my application just wrote.
>
>Thanks,
>Bob Byron
>RAD Systems, Inc.
>
>

Chris Hill
hillca@cs.purdue.edu
Technical Details
Message-ID: <35ac0bb6.2273111601@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6ogv8t$4j823@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f750efdf50ec60f6
X-Google-Attributes: gidf74b3,public
From: hillca@cs.purdue.edu (Chris Hill)
Subject: Re: Can my application run code that it builds - on the fly compiling?
Date: 1998/07/15
Message-ID: <35ac0bb6.2273111601@forums.borland.com>
X-Deja-AN: 371539960
References: <6ogv8t$4j823@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language