This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with load when upgrading from 1.9.90 to 1.11


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]