Skip to main content

NetBeans Derby/MySQL

3 replies [Last post]
rpjd
Offline
Joined: 2008-01-02
Points: 0

Is anyone familiar with the MySQL (Connector /J Driver) for Netbeans Database Derby. I have downloaded the driver as I want to connect to my MySQL database. I don't know what the name of the driver is or where to find it. I downloaded Derby to my localhost directory
c:\Program Files\Apache Software Foundation\Apache2.2\htdocs\Derby
I have also downloaded the driver to this directory as well to Derby\mysql-connector-java-5.1.5\s
Can anyone give me some guidance on this, configuring the the New Database URL?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rpjd
Offline
Joined: 2008-01-02
Points: 0

I found the derby.jar file in my Java directory. I am assuming the database connector driver goes into my localhost directory bacause of the NetBeans New Database Connection URL uses host, which I assume is localhost.
I have set my JAVA_DB path to
c:\\Program Files\Java\jdk1.6.0\lib which contains derby.jar
If the database is connectd via localhost, I am wondering if the Connection URL should be
jdnc:mysql://localhost:80/Derby/db/lib/derby.jar?
I copied the derby directory from Java to my localhost directory to accommodate this.
Can anyone advise me on this configuration?

rpjd
Offline
Joined: 2008-01-02
Points: 0

I am having a problem with NetBeans. When trying to install my Sun Java Server, going through the New Server Instance procedure, after selecting the Sun Java System Application Server, I browsed to the location of the Platform binaries
c:\Program Files\Java\jdk1.6.0\bin but no files are showing in the directory. Can anyone suggest a remedy apart from the obvious re-installing NetBeans?

rpjd
Offline
Joined: 2008-01-02
Points: 0

Decided to re-install NetBeans, but the problem still exists. In adding a new server (Sun Java) connection, the bowser in which files are selected is not showing any files, only file folders despite the All Files default file type. Does anyone know why this is happening?
In creating a new database connection, I am trying to configure the correct URL for the database. Should the database JAR's (DERBY) be copied to the localhost directory?