This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Help, Setting classpath, using external java libraries with Kawa
On 04/01/2017 06:11 AM, Vasantha Ganesh wrote:
Hello,
I'm trying to convert this(http://lpaste.net/354170) Java code into
Scheme(Kawa) (http://lpaste.net/354171).
I ran this for java and it ran without hickups,
java -cp /usr/share/java/jnr-ffi.jar:.:/usr/lib/java/jffi.jar:/usr/lib/java/jffi-native.jar:/usr/share/java/objectweb-asm/asm.jar
Getpid.java
and for kawa, I ran this:
kawa -J -cp /usr/share/java/jnr-ffi.jar:.:/usr/lib/java/jffi.jar:/usr/lib/java/jffi-native.jar:/usr/share/java/objectweb-asm/asm.jar
getpid.scm
The exact error that I get is:
Error: Could not find or load main class
There can't be any space after -J - it has to be the same option.
And as I wrote: you have to repeat the -J for each Java option:
kawa -J-cp -J/usr/share/java/jnr-ffi,jar:etc:etc getpid.scm
The -J option works the same way as in javac when it uses -J to pass
options to the JVM it is running on.
--
--Per Bothner
per@bothner.com http://per.bothner.com/