Re: GCJ Compile Error SQLite JDBC

"Nektarios K. Papadopoulos" <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.