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]

Kawa on Android - problems with kawa.standard.Scheme


Hello fellow Schemers,

I've been trying to work with Kawa on Android, and it works great!
I've run into a couple of problems though, one of them is the following:
The class kawa.standard.Scheme causes problems when Android tries to
load it (the error.log is attached):

java.lang.ClassNotFoundException: kawa.standard.Scheme in loader dalvik.system.PathClassLoader[.]

I've created the following simple activity to test this:

(require 'android-defs)
(activity at.nexoid.schemetest.SchemeTest
  (on-create-view
    (let* ((self (this))
           (tv (android.widget.TextView self text: "Hello Scheme"))
           (tmp (apply + (list 1 2 3))))
      tv)))

There's a tarball with the code (including the ant file for building
and deploying) at http://www.nexoid.at/tmp/SchemeTest.tar.gz. Unpack,
run "adb devices" (to get a connection), then run "ant sinstall" to
install the application to your Android device.

The generated classes.dex file (which includes all classes that are
sent to the Android device) does include kawa.standard.Scheme:
> /opt/android-sdk/platform-tools/dexdump bin/classes.dex  | grep kawa.standard.Scheme -C 3

Class #770            -
  Class descriptor  : 'Lkawa/standard/Scheme;'
  Access flags      : 0x0001 (PUBLIC)
  Superclass        : 'Lgnu/kawa/lispexpr/LispLanguage;'

Is this a known problem? It is rather a hassle not to be able to use
kawa.standard.Scheme, as a lot of the arithmetic code and basic Scheme
functions depend on it.

I'd appreciate any help!

Thanks for making Kawa work as well as it works on Android!

Peter

Attachment: error.log
Description: Text document

Attachment: pgp00000.pgp
Description: PGP signature


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