public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Vasantha Ganesh <vasanthaganesh.k@gmail.com>
Cc: kawa@sourceware.org
Subject: Re: Help, Setting classpath, using external java libraries with Kawa
Date: Sat, 01 Apr 2017 13:17:00 -0000	[thread overview]
Message-ID: <2954a7d0-ce47-8db0-0c7b-a045f6e54041@bothner.com> (raw)
In-Reply-To: <CAL0TjKr9S=E32Jk4bFuvPLPKCb21CoatkgZ9xpaWTCGH_yGeaQ@mail.gmail.com>

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/

      parent reply	other threads:[~2017-04-01 13:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-01  9:35 Vasantha Ganesh
2017-04-01 11:23 ` Sudarshan S Chawathe
2017-04-01 12:54 ` Per Bothner
2017-04-01 13:11   ` Vasantha Ganesh
2017-04-01 13:16     ` Vasantha Ganesh
2017-04-01 13:17     ` Per Bothner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2954a7d0-ce47-8db0-0c7b-a045f6e54041@bothner.com \
    --to=per@bothner.com \
    --cc=kawa@sourceware.org \
    --cc=vasanthaganesh.k@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).