[sword-devel] Java JNI bindings

Tsoloane Moahloli sword-devel@crosswire.org
Mon, 08 Jan 2001 09:58:42 +0200 (SAST)


Hi Joe,

Just to say, I like your files. I have written some java stuff to reproduce all
of the information in canon.h and should be able to reproduce VerseKey type
activity in the next little while.  Troy, I there somewhere we can have the
Java Code stored centrally so that people can have access to it.  I should have
basic functionality after the weekend unless I get some unforseen emergency at
work.

Cheers,

T.

Oh and compliments of the new year to all.
On 07-Jan-2001 Joe Walker wrote:
> 
> Hi,
> 
> Not sure I've seen an answer to this, and Troy may have a totally different
> answer, but to me JNI is sometimes useful if the native interface you need is
> very simple, and the functionallity it provides is complex, and no Java
> alternative exists.
> 
> Often the complexities of debugging JNI make for a total nightmare time, and
> the
> interface code is not intuative at all. I've been programming in Java for
> several years and without doubt JNI is my worst experience. Websphere tries
> hard, but JNI takes he crown for horribility.
> 
> I have some Java code to read sword data files if you are interested.
> 
> Joe.
> 
> 
> Paul Gear wrote:
> 
>> Troy,
>>
>> I remember sometime back you mentioned that you thought using JNI
>> bindings to the Sword C++ libraries would be an inappropriate way to
>> make a Java API.  Can you explain why again?
>>
>> Thanks,
>> Paul
>> ---------
>> "He must become greater; i must become less." - John 3:30
>> http://www.bigfoot.com/~paulgear

-- 
An error can never become true however many times you repeat it.
The truth can never be wrong, even if no one hears it.
          - Mahatma Gandhi

Tsoloane Moahloli
Zen Computing (Pty)Ltd.
phone +27 11 706 7054
email: tsoloane@zen.co.za               URL: http://www.zen.co.za