This is the mail archive of the kawa@sources.redhat.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]
Other format: [Raw text]

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 




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