This is the mail archive of the kawa@sourceware.org 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: Problem with invoke with method determined at runtime


On 01/07/2012 12:28 PM, Per Bothner wrote:
On 01/07/2012 12:22 PM, Bill Robinson wrote:
$ /usr/local/bin/kawa -C test.scm&& java -classpath
/usr/local/share/java/kawa.jar:. Test
(compiling test.scm to test)
test 1

You have to do: /usr/local/share/java/kawa.jar:. test

I.e. run the module class 'test' - otherwise things may
not be initialized properly.

Cut-and-paste error - that should be: java -cp /usr/local/share/java/kawa.jar:. test

That assumes you compiled test.scm with --main.
If you don't compile with --main, you can do:
java -cp /usr/local/share/java/kawa.jar:. kawa.repl test
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


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