public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Claude Marinier <claudem223@gmail.com>
To: kawa@sourceware.org
Subject: Fwd: first Android app - Didn't find class
Date: Sun, 17 Apr 2016 20:11:00 -0000	[thread overview]
Message-ID: <CAPg6usCPufVVOhxsejC4mJJ07LZHF1ONihJOSffg6Q5Ta_mSOw@mail.gmail.com> (raw)
In-Reply-To: <CAPg6usC95-BBUniSY_hHFJvGm160kLwi7eYNybFj08Uhm9pgFw@mail.gmail.com>

Good morning,

I missed the step to link the custom_rules.xml. My apologies.

However, there is another problem: I cannot find the file on my
computer. It is neither in the specified directory nor in the
kawa-2.1.tar.gz archive.

Since it is in the subversion repository, I downloaded it from there.

The build now fails with a new error.

  scompile:
       [java] Error: Could not find or load main class kawa.repl

The the XML file references the REPL class here.

    <java failonerror="true" fork="true" classname="kawa.repl">

Looks like I need to edit the XML file. What changes do I need to make?

Thank you.

-- 
Claude Marinier

On 17 April 2016 at 00:22, F. Rafael Leon <teflon@ucdavis.edu> wrote:
>
> Claude,
>
> I am not an ANT expert, but I have some Kawa Android experience using gradle.
>
> On the page that you referenced:
>
> https://www.gnu.org/software/kawa/Building-for-Android.html
>
> It says to copy this file into your ant build tree:
>
> https://sourceware.org/viewvc/kawa/trunk/gnu/kawa/android/custom_rules.xml?view=markup
>
> I believe that xml rules file is responsible for creating
> /kawa/android/hello.class in the correct location.
>
> That class file must be created in the correct location in the build
> tree to be included into the apk.
>
> The extra "/" in the error message is nothing to worry about.
> I think it just separates the package name from class name.
>
> If you have more trouble, upload the whole thing to a public github
> repo and I will download it and fix it.
>
> Good luck.
>
>     -Rafael
>
> On Sat, Apr 16, 2016 at 9:48 PM, Claude Marinier <claudem223@gmail.com> wrote:
> > Hi,
> >
> > I followed the instructions on the Kawa web site. The page is here.
> >
> >     https://www.gnu.org/software/kawa/Building-for-Android.html
> >
> > The simple hello app compiles. I can install it on the emulator and
> > click its icon to run it. I displays a window with a title bar and
> > dies; 'adb logcat' displays a lot of messages. I think this one is
> > significant.
> >
> >     Didn't find class "kawa.android.hello" on path:
> >         DexPathList[[zip file "/data/app/kawa.android-1.apk"]


-- 
Claude Marinier

  parent reply	other threads:[~2016-04-17 20:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-17  1:48 Claude Marinier
2016-04-17  4:23 ` F. Rafael Leon
2016-04-17  5:17   ` Per Bothner
2016-04-17  5:21   ` Per Bothner
2016-04-17  6:42     ` F. Rafael Leon
2016-04-24 16:10       ` Adrián Medraño Calvo
     [not found]   ` <CAPg6usC95-BBUniSY_hHFJvGm160kLwi7eYNybFj08Uhm9pgFw@mail.gmail.com>
2016-04-17 20:11     ` Claude Marinier [this message]
     [not found]       ` <CALPCXwjLYwFBx2zpS6B-xmqYAFps3yGtrUKG=_eUzmt3chfSZg@mail.gmail.com>
2016-04-17 23:50         ` Claude Marinier
2016-04-18  0:05       ` Fwd: " Per Bothner

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=CAPg6usCPufVVOhxsejC4mJJ07LZHF1ONihJOSffg6Q5Ta_mSOw@mail.gmail.com \
    --to=claudem223@gmail.com \
    --cc=kawa@sourceware.org \
    /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).