Creamos un proyecto Java utilizando NetBeans

Ahora agregamos el Driver JDBC MYSQL

dar clic en el plugin

Seleccionamos la base de datos

Tenemos elAPI generado

Damos clic derecho en el nombre del proyecto y seleccionamos Limpiar y Construir

Ahora en la carpeta dist de nuestro proyecto tenemos el jar con la persistencia de nuestra base de datos
>
Ahora creamos un nuevo proyecto

En las propiedades del proyecto, agregamos el driver jdbc MySQL y el API de persistencia correspondiente al proyecto anterior que creamos.(archivo .jar)

Bibliotecas necesarias

Esta es la clase principal

Agregamos el api

Ahora agregamos el Driver JDBC MYSQL

dar clic en el plugin

Seleccionamos la base de datos

Tenemos elAPI generado

Damos clic derecho en el nombre del proyecto y seleccionamos Limpiar y Construir

Ahora en la carpeta dist de nuestro proyecto tenemos el jar con la persistencia de nuestra base de datos
>

Ahora creamos un nuevo proyecto

En las propiedades del proyecto, agregamos el driver jdbc MySQL y el API de persistencia correspondiente al proyecto anterior que creamos.(archivo .jar)

Bibliotecas necesarias

Esta es la clase principal

Agregamos el api

Comments