I am working on a java front-end with a mysql database back-end.
It work's well in Eclipse, however, when I export it to a jar file I get the following 'class not found exception com.mysql.jdbc.driver jar' error via command prompt (see screenshot)
Maybe it's my main class? I know it has something to do with the build path but everything looks ok to me?
Code:public static void main(String[] args) { try { Class.forName(JDBC_DRIVER); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } new DatabaseView(); }




Reply With Quote