This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Mysql and -static--libgcj
Oh thanks for the time. i also see that for you its run fast. Without linking
static i have a delay in the run of 10 seconds..
Can you tell me 2 thinks.
1) How do you installed that version in windows.. i tryed with Java Native
compile, Mingw etc.. without succes.
2) can you generate linux exec with that windows version ?
I will try to install that version exactly as you indicate to me..
Thanks you a lot....
Taufik Chowi wrote:
>
> 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
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Mysql-and--static--libgcj-tp19673573p19681963.html
Sent from the gcc - java mailing list archive at Nabble.com.