JDBC With MySQL Connector/J Using Eclipse

These instructions assume you are working on one of the MCS Department Macs. If you are using your own computer on the Gustavus network, you will need to install the MySQL Connector/Java software and modify these instructions based on the location where you installed it.

  1. Create a new Java project in Eclipse.

  2. Right click on the project folder, select Build Path, and from the submenu select Add External Archives...

  3. In the JAR Selection panel that comes up, navigate to /Users/Shared/mysql-connector-java-5.1.34-bin.jar as shown here and click Open:
    selecting /Users/Shared/mysql-connector-java-5.1.34-bin.jar

  4. Add a new class to the project containing your JDBC program. Confirm that it runs at least enough to establish the connection to the database server.