Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 3rd, 2002, 09:14 AM
mgandha mgandha is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 1 mgandha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry jdbc driver not found..

I get this msg when i run my jsp code. I had a big discussion with my hosting service people. They are not understanding. I know this means that the class cant be referenced where do you think the problem is? Anyone... i attached my code below. Thanx..

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

<--------code----------->
<html>
<!--Importing the Packages-->
<%@ page import = "java.sql.*" %>

<body>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();

java.sql.Connection conn;

conn = DriverManager.getConnection(
"jdbc:mysql://localhost/mgandha_data?user=mgandha_mgandha&password=mariog");
%>

</body>
</html>

Reply With Quote
  #2  
Old September 3rd, 2002, 01:02 PM
bapolis bapolis is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 257 bapolis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 27 m 56 sec
Reputation Power: 7
sounds like the class wasn't installed properlly. This is what I used to get started: http://triton.towson.edu/~schmitt/j...m.doc/book1.htm

Reply With Quote
  #3  
Old September 3rd, 2002, 01:04 PM
mgandha mgandha is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 1 mgandha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank You...

Yeah I thought so they think its not though... well its not exactly mm.mysql.. i think they installed a newer version called connector/j.... or something... so thanks for the help though.

Reply With Quote
  #4  
Old September 14th, 2002, 03:59 PM
StinkFist StinkFist is offline
Cthulu-ish
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Seattle
Posts: 31 StinkFist User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I just installed connector/j and the jdbc string for it is different it's "com.mysql.jdbc.Driver"

that and make sure your jar file is in the right spot
__________________

Reply With Quote
  #5  
Old September 23rd, 2002, 09:02 AM
corykwalker corykwalker is offline
Database Expert
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 20 corykwalker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This is likely a classpath problem. Make sure the jar file, mysql-connector-java-2.0.14-bin.jar, is accessible to the JSP page compiler. This could be the server or a standalone translator.

If you are using the Tomcat server in a Windows operating environment, you can drop this file into c:\tomcat\common\lib.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > jdbc driver not found..


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway