Re: [tcljava-dev] Re: tjc runtime compiler
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2006-02-15 20:34:12
|
On Wed, 15 Feb 2006 09:59:30 -0800 Martti Tienhaara <ma...@da...> wrote: > > From: Mo DeJong <md...@un...> > > > A new runtime Tcl proc compiler API has been added to the CVS version of Jacl. > > This runtime compiler will take a Tcl procedure as input and generate Java > > byte code that will work the same way as the original Tcl proc. Previously, > > the TJC compiler only worked as a separate ahead of time compiler. > > > Great work. Thanks for testing Martti > I have come up with a few minor problems running on a Linux system. I > carried out the configure-make-install steps. > > - jaclsh installed in /usr/local/bin requires the MINGW check to be > commented out. Also the JACL_CLASSPATH doesn't include the java compiler > janino.jar. > > - jdk.cfg installed in /usr/local/bin uses ":" the linux path separator > but only works if you change it to use the Windows path separator ";". > Again janino.jar is missing. > > - running the hello world example doesn't work in jaclsh unless you > create a link to the janino.jar file in the current working directory > even after adding it to all the CLASSPATH's. It is installed in > /usr/local/lib/tcljava1.3.2 by make install. The attached patch should fix these issues. The janino.jar file should not actually appear on the CLASSPATH as it is loaded via the TclClassLoader off of the env(TCL_CLASSPATH). Trouble was, the code was not looking in the right place. The attached patch should fix that too. Mo DeJong |