View Full Version : netbeans and mysql connector

September 28th, 2009, 02:26 AM
I am trying to write a short JAVA program that connects to the mysql db on my workstation. Looking at:


Above link talks about Darby and Pointbase but I do not see either of them in the netbeans version I have. I doewnloaded the packaged version using synaptic. I also do not see any of the options that above document talks about. Should I be using a different version of Netbeans? I have version 6.5.

The code I am trying to use is at


And it compiles fine. I have also followed the instructions at:


And added the mysql connector to my compiler libraries. The code above runs, but it stops at the class.forName ... line, and throws and exception.

Any help please?

September 28th, 2009, 05:54 AM
i dont use netbeans myself so i doubt i can help in any detail, just to mention that the netbeans guide you mention is for 5.5, not 6.5, hence the missing options no doubt. a more up to date guide to netbeans and databases is below and hopefully should cover all your looking for

September 28th, 2009, 01:09 PM
I appreciate that. I reviewed the document you sent. It says I should see an option for DB in the services window. But I do not. I also looked at the help section of the compiler. However, the modules that are supposed to talk about how to connect to the DB are missing; it states to refer to the web site. Something tells me the version I have does no support DB? Do you think I need to install a different version of Netbeans?

September 28th, 2009, 01:32 PM
might seem like a silly question but, when you go to tools->plugins is the 'Database' plugin installed and updated if necessary? if it is and its not working i can say for sure that the database plugin on version 6.7.1 works fine.

October 5th, 2009, 01:22 AM
It is a great question. After looking around a little, what I was missing was the driver under the tools>pluggins section as you indicated. The code works:-) btw, I used eclips in the windows environment also, and that worked also. But I really wanted to get this working. Thanks for all your help.