Eclipse rcp - how to load jdbc driver? -
i wondering if give me instructions on how following:
- how add mysql connection jar file eclipse plugin build path
- 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
Post a Comment