Re: How do I add the Connector/J location to my Java Classpath on a Mac?
Posted by: Filipe Silva
Date: August 27, 2018 08:39AM

Hi,

You just need to copy the file `mysql-connector-java-8.0.12.jar` to any directory of your liking. Usually it goes into a `libs` directory in the project tree, but it's really up to your preferences.

Regarding adding it to the Java CLASSPATH, this is just a reference to make it available in your project, which is usually done by providing the command option `-cp` in the java and javac executables. Refer to https://docs.oracle.com/javase/tutorial/essential/environment/paths.html for additional information about this.

I don't know what you are trying to do but for project development I'd recommend using any available IDE out there. All of them have some sort of project configuration structure where you config the project's classpath. This is what you should start with, if that's the case.

IHTH

Options: ReplyQuote


Subject
Written By
Posted
Re: How do I add the Connector/J location to my Java Classpath on a Mac?
August 27, 2018 08:39AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.