If GlassFish is already running then you will have to restart it so that it picks up the new library. On my system the folder is located at C:\Users\Ken\personal_domain\lib. ![]() You are looking for the driver file named mysql-connector-java-5.1.34-bin.jar in the archive.Ĭopy the driver file to the lib folder in the directory where you placed your domain. ![]() If your OS is Windows download the ZIP archive otherwise download the TAR archive. I recommend downloading the Platform Independent version. Go to the MySql Connector/J download site at and download the latest version. With the exception of Derby, GlassFish does not include the MySQL driver or any other driver in its distribution. Step 1a: Manually Adding the MySQL driver to the GlassFish Domainīefore we even start NetBeans we must do a bit of preliminary work. Steps 1 through 4 are required, Step 5 is optional. As I went through the steps I realized that I needed to record the steps for my students to reference. The other day I presented to my students the steps necessary to make GlassFish responsible for JDBC connections. ![]() See my previous article “Creating a New Instance of GlassFish in NetBeans IDE” Instance with its own folder for the domain. ![]() It is further assumed that you have replaced the default GlassFish server instance in NetBeans with a new This tutorial assumes that you have installed the Java EE version of NetBeans 8.02.
0 Comments
Leave a Reply. |