This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: GCJ Compile Error SQLite JDBC


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


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