File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Problem with connecting to mysql database using eclipse. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem with connecting to mysql database using eclipse." Watch "Problem with connecting to mysql database using eclipse." New topic
Author

Problem with connecting to mysql database using eclipse.

vijayakrishna Mikkilineni
Greenhorn

Joined: Nov 10, 2009
Posts: 24
Hello,

I am trying to connect to mysql database using eclipse. I already added MySQL JDBC Driver to the libraries folder in eclipse. Here is the code:




However when I start the Tomcat Server, I am getting ClassNotFoundException:





I ran the same code using NetBeans IDE and it is running perfectly. I am using this code for a Web Application. I have to use eclipse because this is a Adobe Flex based project.

Can someone help me with this?

Vijayakrishna M
vijin das
Ranch Hand

Joined: Jun 07, 2010
Posts: 129

Please specify whether you had added to WEB-INF/lib folder

is it there in the java build path ....(did you added it to there) just check this also eclipse tutorial

export the project as a war file and extract the contents of the war file if your exported library is there in WEB-INF/lib folder then it should work ........... try upload that war file into your server and see whether it is working properly....



VIJINDAS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with connecting to mysql database using eclipse.