public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Taufik Chowi <m4g1c14n2000@yahoo.com>
To: Marco Trudel <marco@mtsystems.ch>
Cc: java@gcc.gnu.org
Subject: Re: GCJ Compile Error SQLite JDBC
Date: Tue, 23 Sep 2008 10:19:00 -0000	[thread overview]
Message-ID: <998941.51152.qm@web54602.mail.re2.yahoo.com> (raw)

Dear Marco,

Oh really?
ok thanks a lot for the information.
i will try to find the "build option" that used JNI to access native compiled sqlite library.


:D

Cheers



----- Original Message ----
From: Marco Trudel <marco@mtsystems.ch>
To: Taufik Chowi <m4g1c14n2000@yahoo.com>
Cc: Nektarios K. Papadopoulos <npapadop@inaccessnetworks.com>; java@gcc.gnu.org
Sent: Tuesday, September 23, 2008 5:13:25 PM
Subject: Re: GCJ Compile Error SQLite JDBC

Taufik Chowi wrote:
> Dear Nektarios,
> 
> Actually i never want to compile sqlitejdbc jar files, but unless i do that i wont be able to use it from my gcj compiled java code >.<
> so here is what happened :
> 1. write a program in java... uses the sqlite jdbc....
> 2. everything works perfectly... no problem whatsoever...
> 3. try to compile the written java program into native by using gcj. now, i cant make my gcj compiled java program to work properly unless i also compile the sqlitejdbc jar file
> 4. puff.... problem occured because i cant compile sqlitejdbc jar file with gcj hence my gcj compiled java program wont work too 
> 
> or do you have any other alternative ? perhaps by using a non pure java jdbc of sqlite?

Exactly this has been answered in the mail:

sqlitejdbc does this in order to provide a cross-platform (pure Java) 
sqlite
jdbc driver. If one plans to compile the resulting jarfile with gcj 
there is no
need to do this trick in the first place.

sqlitejdbc provides a build option not to include the MIPS emulator and 
use JNI
to access the native compiled sqlite library.


Marco

> 
> Thanks a lot for your help :)
> 
> Cheers and God Bless,
> 
> Chowi
> 
> 
> 
> ----- Original Message ----
> From: Nektarios K. Papadopoulos <npapadop@inaccessnetworks.com>
> To: Andrew Haley <aph@redhat.com>
> Cc: Taufik Chowi <m4g1c14n2000@yahoo.com>; java@gcc.gnu.org
> Sent: Tuesday, September 23, 2008 4:23:14 PM
> Subject: Re: GCJ Compile Error SQLite JDBC
> 
> On 2008-09-11 14:12, Andrew Haley wrote:
>> Taufik Chowi wrote:
>>> Dear Andrew,
>>>
>>> Certainly 
>>> http://files.zentus.com/sqlitejdbc/sqlitejdbc-v053.jar
>>>
>>> btw he is number one result, if you try googling sqlite jdbc , he comes out on top
>>> and some other sqlite jdbc creator also praise his jdbc
>>> such as http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC
>>> "The original Zentus's SQLite JDBC driver http://www.zentus.com/sqlitejdbc/ itself is an excellent utility for using SQLite databases from Java language , and our SQLiteJDBC library also relies on its implementation."
>> OK, this jar file is the result of compiling sqlite (written in C?)
>> into MIPS machine code and then embedding a MIPS emulator into
>> Java.  The resulting enormous jarfile is the result.
> 
> sqlitejdbc does this in order to provide a cross-platform (pure Java) sqlite 
> jdbc driver. If one plans to compile the resulting jarfile with gcj there is no 
> need to do this trick in the first place.
> 
> sqlitejdbc provides a build option not to include the MIPS emulator and use JNI 
> to access the native compiled sqlite library.
> 
> However, I never tried to use the resulting jarfile + native library with gcj.
> 
>> I am confident in saying, for the first time ever that we have a
>> jar file that cannot be compiled with gcj.
>>
> ok, but IMHO there is no need to compile this jar file with gcj ;-)
> 


      

             reply	other threads:[~2008-09-23 10:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-23 10:19 Taufik Chowi [this message]
2008-09-23 11:15 ` Nektarios K. Papadopoulos
  -- strict thread matches above, loose matches on Subject: below --
2008-09-24  3:12 Taufik Chowi
2008-09-23  9:33 Taufik Chowi
2008-09-23 10:14 ` Marco Trudel
2008-09-11 11:05 Taufik Chowi
2008-09-11 11:13 ` Andrew Haley
2008-09-23  9:24   ` Nektarios K. Papadopoulos
2008-09-11  9:55 Taufik Chowi
2008-09-11 10:51 ` Andrew Haley
2008-09-11  9:33 Taufik Chowi
2008-09-11  9:43 ` Andrew Haley
     [not found] <333198.77200.qm@web54603.mail.re2.yahoo.com>
2008-09-11  9:31 ` Andrew Haley
2008-09-11  9:22 Taufik Chowi
2008-09-11  6:28 Taufik Chowi
2008-09-11  9:07 ` Andrew Haley

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=998941.51152.qm@web54602.mail.re2.yahoo.com \
    --to=m4g1c14n2000@yahoo.com \
    --cc=java@gcc.gnu.org \
    --cc=marco@mtsystems.ch \
    /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).