CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Feb 2010
    Posts
    121

    class not found exception com.mysql.jdbc.driver jar

    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();
    
    	}
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured