From: Taufik Chowi <m4g1c14n2000@yahoo.com>
To: ezer <andres.a@adinet.com.uy>
Cc: java@gcc.gnu.org
Subject: Re: Mysql and -static--libgcj
Date: Fri, 26 Sep 2008 03:26:00 -0000 [thread overview]
Message-ID: <722917.97503.qm@web54606.mail.re2.yahoo.com> (raw)
Dear Ezer,
i tried compiling your code, and it works perfectly no problem from Windows
i commented this code because i am so lazy to create new record in this table >.<
//Vector row = new Vector();
//row.add(rs.getInt("id"));
//row.add(rs.getString("titulo"));
//row.add(rs.getString("descripcion"));
D:\gcc-4.3\bin>gcj -O2 mysql-connector-java-3.0.17-ga-bin.jar MysqlConnect.java --main=MysqlConnect -static-libgcj
D:\gcc-4.3\bin>a
MySQL Connect Example.
Connected to the database
Query executed
Disconnected from database
Execution Time: 0 seconds
last time i also had the same NoClassDefFoundError problem, but usually everything will be ok if you added
private static final Class class3 = com.mysql.jdbc.Driver.class;//This will not compile with jde in my past experience , only include this to solve some of the NoClassDefFoundError from gcj
Cheers and God Bless,
Chowi
next prev reply other threads:[~2008-09-26 3:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 16:42 ezer
2008-09-26 3:26 ` Taufik Chowi [this message]
2008-09-26 3:35 ` ezer
2008-09-26 3:57 Taufik Chowi
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=722917.97503.qm@web54606.mail.re2.yahoo.com \
--to=m4g1c14n2000@yahoo.com \
--cc=andres.a@adinet.com.uy \
--cc=java@gcc.gnu.org \
/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).