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


On Tue, Jun 06, 2000 at 12:50:40PM -0700, Per Bothner wrote:
> "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.)

Yeah, I was changing names around, and I forgot the recursive call.
Even with 'foo' changed to 'baz', though, it doesn't work:

foo.scm:
(define (baz x)
  (display x)
  (newline)
  (if (< 1000 x)
      0
      (baz (+ x 1))))

(baz 1)

@eugene [~/test] $ kawa --main -C foo.scm
(compiling foo.scm)

@eugene [~/test] $ java foo
Can't find class foo

> Which versions of Kawa and Java are you using?

java version "1.1.8"
Kawa 1.6.67, from CVS

Thanks,
-- 
David N. Welton, Responsabile Progetti Open Source, Linuxcare Italia spa
tel +39.049.8043411 fax +39.049.8043412 cel +39.348.2879508
davidw@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.

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