This is the mail archive of the kawa@sourceware.cygnus.com 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]

Re: can't find class foo


"David N. Welton" <davidw@linuxcare.com> writes:

> kawa --main -C foo.scm
> (compiling foo.scm)
> 
> @eugene [~/test] $ java foo 
> Can't find class foo

Works as expected for me:

kelso<1449>java foo
1
Exception in thread "main" gnu.mapping.UnboundSymbol: Unbound symbol foo
	at kawa.standard.ScmEnvConstraint.get(ScmEnv.java:74)
	at gnu.mapping.Constraint.getProcedure(Constraint.java:28)
	at gnu.mapping.Binding.getProcedure(Binding.java:23)
	at foo.baz(foo.scm:6)
	at foo.run(foo.scm:8)
	at gnu.expr.ModuleBody.apply0(ModuleBody.java:16)
	at gnu.expr.ModuleBody.runAsMain(ModuleBody.java:30)
	at foo.main(foo.scm)

This is as expected, as foo really is unbound.
(I'm guessing foo should be bar.)

Which versions of Kawa and Java are you using?
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

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