This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Re: beginner problem
- To: Karl Schaan <kschaan at ufr dot lirmm dot fr>, <kawa at sourceware dot cygnus dot com>
- Subject: Re: beginner problem
- From: "Paul R. Potts" <potts at umich dot edu>
- Date: Fri, 07 Apr 2000 10:47:28 -0400
Congratulations, Karl! You're having the same problem I'm having, which is
that there doesn't seem to be a standard, documented way to set up an
environment and interpreter, keep it around, and execute expressions in it.
At least, there have been various recommended ways of doing it over the
various versions, but I can't make it work anymore with the current
versions.
So, you're not alone at least.
Paul
on 4/7/00 10:43 AM, Karl Schaan at kschaan@ufr.lirmm.fr wrote:
> I try to run the following test :
>
> import kawa.standard.Scheme;
>
> public class Appli
> {
> static public void main(String argv[])
> {
> Scheme scm = new Scheme();
> Object x = scm.eval("(+ 3 2)");
> System.out.println(x);
> }
> }
>
> it compiles but at the run-time I obtain :
>
> java.lang.NullPointerException
> at kawa.lang.CompileFile.readBody(CompileFile.java:46)
> at kawa.standard.Scheme.eval(Scheme.java:695)
> at kawa.standard.Scheme.eval(Scheme.java:678)
> at kawa.standard.Scheme.eval(Scheme.java:683)
> at Appli.main(Appli.java:8)
>
> could you tell me why it doesn't work ?
> thank you.
>
> karl schaan
>
--
"I put Sluggo in the sink and gave him some dog food rated 'for small dogs.'
The turtles are more fun if you think of them as very small, very wet dogs."
Paul R. Potts - Technology Group Leader - Health Media Research Lab
Comprehensive Cancer Center - University of Michigan - potts@umich.edu