To improve the out-of-box-experience for database development in NetBeans, the plan as described in this document is to =include 3rd party open source JDBC driver jar files in NetBeans 6 beta2.
The following drivers, MySQL® Connector/J 5.0.7 and Postgres 8.2-506 JDBC drivers (including license files for each jar file) are to be included with NetBeans.
There are two parts to this task.
Currently, in the Services tab under the Drivers node, if Java DB is registered, there are 2 drivers listed (on Windows, there is a 3rd driver - JDBC-ODBC) as shown in the screenshot:
For Beta2 the new bundled drivers will appear under the Drivers node:
Also, to help the user create a connection, when choosing the Connect Using action, the New Connection dialog will have the Database URL format for the corresponding driver and driver class name filled in. The user can replace the server name, port number and schema or database name and the username and password:
The Name dropdown in the screenshot above will also be pre-filled with the new additional drivers.
Changes/Additions to make for the db module
db_
|_ drivers
|_ external
|_ mysql-connector-java-5.0.7-bin.jar
|_ mysql-connector-java-5.0.7-bin-license.txt
|_ postgresql-8.2-504.jdbc3.jar
|_ postgresql-8.2-504.jdbc3-license.txt
<!DOCTYPE driver PUBLIC '-//NetBeans//DTD JDBC Driver 1.0//EN' 'http://www.netbeans.org/dtds/jdbc-driver-1_0.dtd'>
<driver>
<!-- the name should be exactly 'JDBC-ODBC Bridge', since connections created in 4.1 will rely on it -->
<name value='Postgres-7'/>
<display-name value='PostgreSQL (v7.0 and later)'/>
<class value='org.postgresql.Driver'/>
<urls>
<url value="jar:nbinst:///modules/ext/postgresql-8.2-506.jdbc3.jar!/"/>
</urls>
</driver>
| database_drivers_install_dialog1.GIF | ![]() |
19409 bytes |
| database_drivers_install_result.GIF | ![]() |
18916 bytes |
| database_drivers_license_agreement.GIF | ![]() |
22137 bytes |
| database_drivers_plugins.GIF | ![]() |
39406 bytes |
| drivers_beta1.GIF | ![]() |
4750 bytes |
| drivers_beta2.GIF | ![]() |
8414 bytes |
| new_connection.GIF | ![]() |
16156 bytes |
| plugins_database_drivers.GIF | ![]() |
27643 bytes |