I am attempting to connect to a MYOB datafile using JDBC so that I can write a Java program to read some of the contents of that file.
As I am unfamiliar I have been looking at a variety of tutorials and they all fail with the error ClassNotFoundException in the same location leading me to believe I am missing a step that all the tutorials assume it is obvious.
The Error occurs when I try to run the following line (as per the current tutorial I am following:
Class.forName("com.mysql.jdbc.Driver");
The exact error is:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
Could someone point me in the right direction I am currently using this tutorial but I am not sure why the Class cannot be found.