From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4516 invoked by alias); 23 Sep 2008 11:15:33 -0000 Received: (qmail 4505 invoked by uid 22791); 23 Sep 2008 11:15:33 -0000 X-Spam-Check-By: sourceware.org Received: from node3.inaccessnetworks.com (HELO inaccessnetworks.com) (212.205.200.118) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 23 Sep 2008 11:15:00 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by inaccessnetworks.com (8.13.6/8.13.5) with ESMTP id m8NBEvlT001708; Tue, 23 Sep 2008 14:14:57 +0300 Received: from inaccessnetworks.com ([127.0.0.1]) by localhost (host11.inaccessnetworks.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00530-14; Tue, 23 Sep 2008 14:14:56 +0300 (EEST) Received: from [192.168.1.44] (sotos.priv.inaccessnetworks.com [192.168.1.44]) by inaccessnetworks.com (8.13.6/8.13.5) with ESMTP id m8NBEsKX001694; Tue, 23 Sep 2008 14:14:54 +0300 Message-ID: <48D8CFAD.8060009@inaccessnetworks.com> Date: Tue, 23 Sep 2008 11:15:00 -0000 From: "Nektarios K. Papadopoulos" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Taufik Chowi CC: Marco Trudel , java@gcc.gnu.org Subject: Re: GCJ Compile Error SQLite JDBC References: <998941.51152.qm@web54602.mail.re2.yahoo.com> In-Reply-To: <998941.51152.qm@web54602.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2008-09/txt/msg00057.txt.bz2 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