Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Talk:Create and Export MySQL JDBC driver bundle"
(New page: 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 ...) |
|||
Line 10: | Line 10: | ||
My code is this one: | My code is this one: | ||
− | public static Connection getMySQLConnection() throws Exception { | + | '''public static Connection getMySQLConnection() throws Exception { |
//Class.forName("org.gjt.mm.mysql.Driver").newInstance(); | //Class.forName("org.gjt.mm.mysql.Driver").newInstance(); | ||
Class.forName("com.mysql.jdbc.Driver").newInstance(); | Class.forName("com.mysql.jdbc.Driver").newInstance(); | ||
return java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/osgi"); | return java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/osgi"); | ||
} | } | ||
− | + | ''' | |
but it doesn't work. | but it doesn't work. | ||
Revision as of 05:26, 28 July 2010
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.