Re: Mysql and -static--libgcj

Taufik Chowi <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.