From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7411 invoked by alias); 24 Sep 2008 03:12:22 -0000 Received: (qmail 7395 invoked by uid 22791); 24 Sep 2008 03:12:21 -0000 X-Spam-Check-By: sourceware.org Received: from web54601.mail.re2.yahoo.com (HELO web54601.mail.re2.yahoo.com) (206.190.49.171) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 24 Sep 2008 03:11:44 +0000 Received: (qmail 28493 invoked by uid 60001); 24 Sep 2008 03:11:42 -0000 X-YMail-OSG: vx154hEVM1mXvRVHLnrDmLEr2MbtFVMLISkhWh84DTT7iOMxO8wKXRUqXuCeORJGFY1O39ss54f9FplvYtfoHm6QKGLJsvoF74xn9JNSZcbU9cPMK5MCjEHebwVftoEIPv0285Nflm5InwiVzUS9n_wP7VMROW1I39NIhJYCVhdh9h5ofGY- Received: from [61.45.234.17] by web54601.mail.re2.yahoo.com via HTTP; Tue, 23 Sep 2008 20:11:42 PDT X-Mailer: YahooMailRC/1096.28 YahooMailWebService/0.7.218.2 Date: Wed, 24 Sep 2008 03:12:00 -0000 From: Taufik Chowi Subject: Re: GCJ Compile Error SQLite JDBC To: "Nektarios K. Papadopoulos" Cc: java@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <794589.28204.qm@web54601.mail.re2.yahoo.com> 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/msg00058.txt.bz2 Dear Nektarios, Thanks for the information. I have one question in your built, is that sqlitejdbc-v044-native.jar can be used in windows box? i mean, i am not sure, generally if you make native using linux , that means it will generate a native for linux right? i know in gcj there is something called cross native compiler or something along that line that allow gcj to compile for specific operating system native executable from any linux os, but i dont know if the "make native" can do that or not >.< my java program need to run well on both Windows and Linux operating system (thanks to everyone, right now, i know for sure it will run well on Linux OS) again thanks a lot, finally i can see that my java program can definitely be compiled and working with a very powerful serverless database :) Cheers, Chowi ----- Original Message ---- From: Nektarios K. Papadopoulos To: Taufik Chowi Cc: Marco Trudel ; java@gcc.gnu.org Sent: Tuesday, September 23, 2008 6:14:53 PM Subject: 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