public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: burhanuddin baharuddin <burhan_loey@yahoo.com.my>
To: Per Bothner <per@bothner.com>,
		"kawa@sourceware.org" <kawa@sourceware.org>
Subject: Re: Can't Compile To A Standalone Application Using Java 8
Date: Thu, 03 Mar 2016 17:47:00 -0000	[thread overview]
Message-ID: <2076051574.2163946.1457027057286.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <56D5B3FC.4080104@bothner.com>

Ahh, thank you.

I missed the CLASSPATH part in the documentation.





On Tuesday, 1 March 2016, 23:23, Per Bothner <per@bothner.com> wrote:



On 03/01/2016 07:08 AM, burhanuddin baharuddin wrote:

> Has anyone managed to compile kawa source code to a standalone application using Java 8?
>
> When I run 'java MyProgram', I always get 'Error: Could not find or load main class MyProgram'.
>
> I did add '--main' argument during compilation.
>
> I can run the program using 'kawa MyProgram' though.
>
> The source file only has '(format #t "Hello, World~%")'. Do I need to define a main function or something?

I would guess a classpath problem.  The classpath needs to include both the directory containing
MyProgram,.class, and the kawa .jar.

The 'kawa' command sets the classpath to include the kawa .jar - but running plain 'java' doesn't.
-- 
    --Per Bothner
per@bothner.com  http://per.bothner.com/

      reply	other threads:[~2016-03-03 17:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <33660780.1240045.1456844883897.JavaMail.yahoo.ref@mail.yahoo.com>
2016-03-01 15:11 ` burhanuddin baharuddin
2016-03-01 15:23   ` Per Bothner
2016-03-03 17:47     ` burhanuddin baharuddin [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=2076051574.2163946.1457027057286.JavaMail.yahoo@mail.yahoo.com \
    --to=burhan_loey@yahoo.com.my \
    --cc=kawa@sourceware.org \
    --cc=per@bothner.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).