class not found error
Posted by: Ralph Bloch
Date: December 09, 2015 09:53AM

I have installed the newest jdbc driver for mySQL. It appears in my .classpath <classpathentry kind="lib" path="src/lib/mysql-connector-java-5.1.38-bin.jar"/>
I can establish a connection to my mysql-server with Eclipse Database Connections. But when I run:
Class.forName("com.mysql.jdbc.Driver").newInstance();
in a java application using the same parameters, I get a 'class not found' error.
Any advice?

Options: ReplyQuote


Subject
Written By
Posted
class not found error
December 09, 2015 09:53AM
December 10, 2015 06:55AM
December 10, 2015 01:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.