I'm on a linux system. I've got a java program that wants to access a MySQL database. If the code is relevant to the problem I can post it.
The code compiles fine.
When I try to run it I get this:
I set my CLASSPATH like this:
And, I believe that Driver.class should be accessible to java:
What am I missing? Yes, it's an ancient jar file but that shouldn't cause the error, I don't think.
Jeanne Boyarsky wrote:For Java classpaths, you need to specify the jar (or a wildcard) and not just the directory. The directory can only be specified for loose class files. Try adding this to your classpath:
Thanks, Jeanne, I appreciate it. That did it.