•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 427,025 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,517 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 2812 | Replies: 3
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi I'm using JSP with Mysql.The Compile time no error.but in the run time the exception has been thrown,
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
i've set the classpath as well and i've attached jar file in the tomcat lib directory
These are the class path settings
C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jsp-api.jar;C:\Program Files\Java\jre1.5.0_07\lib\ext\QTJava.zip;C:\Program Files\javamail-1.4\lib\mailapi.jar;C:\Program Files\javamail-1.4\lib\dsn.jar;C:\Program Files\javamail-1.4\lib\imap.jar;C:\Program Files\javamail-1.4\lib\pop3.jar;C:\Program Files\javamail-1.4\lib\smtp.jar;C:\Program Files\javamail-1.4\mail.jar;C:\Program Files\jaf-1.1\activation.jar;C:\Program Files\mysql-connector-java-5.0.3\mysql-connector-java-5.0.3-bin.jar;C:\Program Files\mysql-connector-java-5.0.3\src\lib\;C:\Program Files\mysql-connector-java-5.0.3\src\org\gjt\mm\mysql\;.
pls give some suggestion if i made any mistake
thanks in advance
regards
rex
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
i've set the classpath as well and i've attached jar file in the tomcat lib directory
These are the class path settings
C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jsp-api.jar;C:\Program Files\Java\jre1.5.0_07\lib\ext\QTJava.zip;C:\Program Files\javamail-1.4\lib\mailapi.jar;C:\Program Files\javamail-1.4\lib\dsn.jar;C:\Program Files\javamail-1.4\lib\imap.jar;C:\Program Files\javamail-1.4\lib\pop3.jar;C:\Program Files\javamail-1.4\lib\smtp.jar;C:\Program Files\javamail-1.4\mail.jar;C:\Program Files\jaf-1.1\activation.jar;C:\Program Files\mysql-connector-java-5.0.3\mysql-connector-java-5.0.3-bin.jar;C:\Program Files\mysql-connector-java-5.0.3\src\lib\;C:\Program Files\mysql-connector-java-5.0.3\src\org\gjt\mm\mysql\;.
pls give some suggestion if i made any mistake
thanks in advance
regards
rex
•
•
Join Date: Apr 2006
Location: Mumbai, India
Posts: 351
Reputation:
Rep Power: 0
Solved Threads: 5
Not sure what you mean. If you are hinting at importing driver classes in the code, it is not required. But if you mean having the driver JAR in the classpath, it should be in the Tomcat common lib. The workstation environment is ignored by Tomcat.
Part of my reply is addressing the original post.
Part of my reply is addressing the original post.
Last edited by aniseed : Oct 27th, 2006 at 5:09 pm. Reason: Edited for clarification
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- How to Connect MySQL from JSP Page (JSP)
- JSP shopping cart (JSP)
- connecting jsp with mysql database (JSP)
- JSP Hosting (JSP)
- Cant get a free web host for JSP & MYSQL (JSP)
Other Threads in the JSP Forum
- Previous Thread: print without dialog box using javascript
- Next Thread: JSP, mysql, and character encoding


Linear Mode