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/23/2012 03:39 AM, Franck Krogh Mortensen wrote:
Hi,

Somehow we still cannot get version 1.11 to work.

We build compile our scheme.scm with the following command in our Ant script:
     <java classname="kawa.repl" fork="yes" failonerror="yes">
       <arg value="-d"/>
       <arg value="${build.classes}/a/b"/>
       <arg value="-P"/>
       <arg value="dk.systematic."/>
       <arg value="-T"/>
       <arg value="scheme"/>
       <arg value="--module-static"/>
       <arg value="-C"/>
       <arg value="${src.main.scheme}/scheme.scm"/>
       <classpath refid="compile-classpath"/>
     </java>

Kawa makes the scheme.class and it's inner classes in the right directory and we makes a jar-file with our application and the scheme class files.

When we call scm.eval("(load \"a.b.scheme\")") in our class which also resides in the jar-file, we gets the following Exception:

Caused by: java.lang.RuntimeException: cannot load a.b.scheme (The system cannot find the file specified)
	at kawa.standard.load.apply2(load.java:47)
	at kawa.standard.load.apply1(load.java:26)
	at gnu.mapping.Procedure.apply(Procedure.java:130)
	at gnu.mapping.Procedure.apply(Procedure.java:113)
	at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
	at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:348)
	at gnu.expr.ModuleExp.evalModule(ModuleExp.java:185)
	at gnu.expr.Language.eval(Language.java:943)
	at gnu.expr.Language.eval(Language.java:883)
	at gnu.expr.Language.eval(Language.java:865)
	at a.b.LoadImpl.loadScheme(LoadImpl.java:43)

I've tried to decompile the generated Scheme.class file and it does not seem to have a package definition like package a.b;

I suggest fixing the -P flag in the Ant fragment to "a.b.". I think you may also need to change the -d flag to plain "${build.classes}". -- --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]