So netbeans has done away with the mount thing(which I'm not familar with anyway.) So, how do I add a .jar file to my project. Here is what I did and it did not work
I have a project called Server
I have a package
net.cardgamesnetwork.games.server ------------> this is where the main class is
and another package
net.cardgamesnetwork.database.drivers ---------> this is where the database .jar is
I right - clicked on the project and added that jar file to the run and complie time classpath. But, when my program try to acces it as follows:
String driverName = ("org.gjt.mm.mysql.Driver"); // MySQL MM JDBC driver
at runtime. But it does compile fine.
What is the proper way to include database drivers with your project when you build it as a .jar?