This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Command line arguments in compiled files?
- From: Jocelyn Paine <popx at ifs dot org dot uk>
- To: kawa at sources dot redhat dot com
- Date: Mon, 11 Nov 2002 17:08:05 +0000 (GMT)
- Subject: Re: Command line arguments in compiled files?
Just tried compiling this, using the --main flag:
(module-name 'Main)
(module-static #t)
(format #t "~A~%" command-line-arguments)
On invoking it from Java, I get
[d:\kb7\mm3\general]java kb7.mm3.general.Main
Exception in thread
"main" java.lang.ExceptionInInitializerError: gnu.mapping.UnboundSymbol:
Unbound symbol command-line-arguments
at gnu.mapping.NameMap.getChecked(NameMap.java:16)
at gnu.expr.ReferenceExp.eval(ReferenceExp.java:103)
at gnu.expr.Expression.eval(Expression.java:21)
But if I dereference command-line-arguments from Kawa run interactively,
then it's OK.
Khairul Azhar reported the same problem on 27th September, but then sent
another mail saying it had mysteriously started working. Mine hasn't,
yet...
Incidentally, the search engine on http://sources.redhat.com/ml/kawa/
hangs or gives a server error every time I use it.
Jocelyn Paine
http://www.ifs.org.uk/~popx/
+44 (0)7768 534 091