I have a java program that I want to run on Mac os.
I have a problem setting classpath for jre and mysql.jar.
If I set the classpath for 'mysql-connector-1.15.0-bin.jar', its display exception is 'undefined method - main'
and if I set the classpath to 'jre', its display is "ClassNotFoundException - com.mysql.jdbc.Driver".
Please help how to set both class paths at a time.
source share