This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ Compile Error SQLite JDBC
- From: "Nektarios K. Papadopoulos" <npapadop at inaccessnetworks dot com>
- To: Taufik Chowi <m4g1c14n2000 at yahoo dot com>
- Cc: Marco Trudel <marco at mtsystems dot ch>, java at gcc dot gnu dot org
- Date: Tue, 23 Sep 2008 14:14:53 +0300
- Subject: Re: GCJ Compile Error SQLite JDBC
- References: <998941.51152.qm@web54602.mail.re2.yahoo.com>
On 2008-09-23 13:18, Taufik Chowi wrote:
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.
I used sqlitejdbc-v044. The build option is:
make native
You get:
build/sqlitejdbc-v044-native.jar
build/Default-i686/libsqlitejdbc.so
I then used a sample class using sqlite jdbc, compiled to .class and used gcj
like this:
gcj -o myTest -findirect-dispatch -fjni --main=mypackage.myTest
sqlitejdbc-v044-native.jar mypackage/myTest.class
BTW,
gcj --version
gcj (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu6)
Cheers
--
Nektarios K. Papadopoulos