Eclipse rcp - how to load jdbc driver? -


i wondering if give me instructions on how following:

  1. how add mysql connection jar file eclipse plugin build path
  2. how add connector jar file library , adding plugin's runtime classpath

i getting com.mysql.jdbc.driver exception when trying load driver class using class.forname("com.mysql.jdbc.driver"). have added jdbc driver project right clicking on project name , selecting add library button. found out there eclipse rcp project there different way of adding jdbc jar file.

i've never used mysql eclipse, i've done postgres sql. maybe you:

  • right-click project in package explorer
  • build path
  • add external archives...
  • select mysql jar archive
  • press ok
  • the library should referenced in "referenced librairies" under package explorer. try run program again.

Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

c# - how to write client side events functions for the combobox items -

ssh client with paramiko (python) -