It's not a secret anymore!*
The moose likes IDEs, Version Control and other tools and the fly likes JFaceDbc and MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JFaceDbc and MySQL" Watch "JFaceDbc and MySQL" New topic
Author

JFaceDbc and MySQL

Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
I have just managed to download and unpack the JFaceDbc 1.2 and started Eclipse. When I goto the JFaceDbc perspective, it showed a long list of drivers, which I deleted most of.
I am interested in connecting to MySQL and so placed the correct hostname and database etc. However, it does not start and the logs tell me that it was unable to find class org.gjt.mm.mysql.Driver - i looked in the directory of plugins/net.sourceforge.jfacedbc_1.2.2 and could not figure out where that class should reside. I have the class on my system (though not on a classpath).
The question is (finally) where should I place a copy the driver's jar file for JFaceDBc to connect.
Thanks in advance.
- FK


The secret to creativity is knowing how to hide your sources.
Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
On the JFace drivers tab, choose your driver, and click the pencil ("Change the selected driver"). On the popup, go to the Extra Class Path tab and add the correct jar file (you may need to select the jar and click the list drivers button also).
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
Excellent, that worked, I just wasn't going into the Extra Class Path to add the new JAR, I've got a tick on it now.
I have setup an alias now and got a connection to my database.
Thanks.
- FK
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JFaceDbc and MySQL