From: Taufik Chowi <m4g1c14n2000@yahoo.com>
To: "Nektarios K. Papadopoulos" <npapadop@inaccessnetworks.com>
Cc: java@gcc.gnu.org
Subject: Re: GCJ Compile Error SQLite JDBC
Date: Wed, 24 Sep 2008 03:12:00 -0000 [thread overview]
Message-ID: <794589.28204.qm@web54601.mail.re2.yahoo.com> (raw)
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 <npapadop@inaccessnetworks.com>
To: Taufik Chowi <m4g1c14n2000@yahoo.com>
Cc: Marco Trudel <marco@mtsystems.ch>; 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
next reply other threads:[~2008-09-24 3:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 3:12 Taufik Chowi [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-23 10:19 Taufik Chowi
2008-09-23 11:15 ` Nektarios K. Papadopoulos
2008-09-23 9:33 Taufik Chowi
2008-09-23 10:14 ` Marco Trudel
2008-09-11 11:05 Taufik Chowi
2008-09-11 11:13 ` Andrew Haley
2008-09-23 9:24 ` Nektarios K. Papadopoulos
2008-09-11 9:55 Taufik Chowi
2008-09-11 10:51 ` Andrew Haley
2008-09-11 9:33 Taufik Chowi
2008-09-11 9:43 ` Andrew Haley
[not found] <333198.77200.qm@web54603.mail.re2.yahoo.com>
2008-09-11 9:31 ` Andrew Haley
2008-09-11 9:22 Taufik Chowi
2008-09-11 6:28 Taufik Chowi
2008-09-11 9:07 ` Andrew Haley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=794589.28204.qm@web54601.mail.re2.yahoo.com \
--to=m4g1c14n2000@yahoo.com \
--cc=java@gcc.gnu.org \
--cc=npapadop@inaccessnetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).