This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Problem with load when upgrading from 1.9.90 to 1.11
- From: Per Bothner <per at bothner dot com>
- To: Franck Krogh Mortensen <Franck dot Krogh dot Mortensen at Systematic dot com>
- Cc: "kawa at sourceware dot org" <kawa at sourceware dot org>
- Date: Mon, 16 Jan 2012 08:48:13 -0800
- Subject: Re: Problem with load when upgrading from 1.9.90 to 1.11
- References: <58CF107C278B3642A3B8684531A9FEB81E1AE0@exmbx01aar>
On 01/16/2012 12:59 AM, Franck Krogh Mortensen wrote:
Hi,
We are trying to upgrade Kawa from version 1.9.90 to the current 1.11.
Our problem is that load does not seem to work properly when loading a pre-complied scheme class. It is working fine with version 1.9.90.
The scenario:
We use Kawa to compile a scm file, as we do not want to compile at the startup of our application. The class files are put in a jar file.
When we start the application the following code is called:
Scheme.registerEnvironment();
Scheme scm = new Scheme();
scm.eval("(load \"scheme.class\")");
Instead of:
(load "a/b/c.class")
do:
(load "a.b.c")
assuming the class is in the path of the context class loader path.
(Loading a class file *not* in the classpath never worked anyway ...)
Though it's not documented, instead of eval+load you could consider
doing kawa.Shell.runFileOrClass("a.b.c", false, 0)
or: kawa.Shell.runClass(clas, env)
BTW: can the documentation for 1.9.90 be found somewhere?
If you have makeinfo installed, you can make it yourself:
cd doc; make html
It won't be as pretty as the website, but it's the same basic content.
I am actively working on updating the documentation: as soon as I've
documented new features, I'll make a preview available.
--
--Per Bothner
per@bothner.com http://per.bothner.com/