I am trying to connect to a mysql database on a Mac. I am trying to install the JDBC driver but I cannot figure out how to add the classpath. I have tried to follow the instructions on the documentation but they don't say how to update the class path on a mac.

I have 2 questions:

1) how do I update the class path on a mac

2) how does this work in my program if other people will be using it. do I have to write a program to update the class path on install?

I'm very new to java. I've been idoing PHP and javascript for a while and I'm crossing over now to java.