Jump to: navigation, search

Talk:Create and Export MySQL JDBC driver bundle

Revision as of 04:26, 28 July 2010 by Diox76.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hi, everyone!

I have followed these steps, but I haven't achieved that this bundle works into my framework environment.

I'm using the following OSGI version:

ProSyst v7 Eclipse GALILEO

My code is this one:

public static Connection getMySQLConnection() throws Exception { //Class.forName("org.gjt.mm.mysql.Driver").newInstance(); Class.forName("com.mysql.jdbc.Driver").newInstance(); return java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/osgi"); } but it doesn't work.

What's wrong?

Any help would be welcome!

Thanks a lot!

Kinds Regards.