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 November 10th, 2001, 04:11 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,686 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 5 Days 16 h 27 m 51 sec
Reputation Power: 259
ClassNotFound ... please help

Hi, I'm trying to install jdbc driver for Mysql, but I get this error:

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver ....

my etc/profile is:

CLASSPATH=$CLASSPATH:/usr/java/jre1.3.1_01/lib/mm.mysql.jar
export CLASSPATH

what shall I do??
Plesa help me!
Thanks

Reply With Quote
  #2  
Old November 12th, 2001, 02:08 PM
ACShafer ACShafer is offline
Not A Jedi Yet
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Salt Lake City
Posts: 8 ACShafer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to ACShafer
What JSP/servlet container are you using?

The container usually won't share the same classpath as you.

If you are using Tomcat, you can just throw a copy of the the .jar into $TOMCAT_HOME/lib and restart Tomcat.

Reply With Quote
  #3  
Old November 12th, 2001, 04:13 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,686 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 5 Days 16 h 27 m 51 sec
Reputation Power: 259
Thanks, but ...

I'm not using a servlet container, I was experimenting with JMeter ( http://jakarta.apache.org ) and thanks to a tutorial about Postgresql ( http://www.fankhausers.com/postgresql/jdbc/welcome.html ) I've discovered that:

- NO CLASSPATH is the best way, just put the driver in /usr/java/jre/lib/ext

- MySQL.com documents regarding jdbc simply SUCKS!!!!

Thanks again for your help.

Reply With Quote
  #4  
Old November 12th, 2001, 05:53 PM
ACShafer ACShafer is offline
Not A Jedi Yet
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Salt Lake City
Posts: 8 ACShafer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to ACShafer
The puzzle is solved when you understand what classpath is explicit and implicit with the environment you are running on.

For general JDBC, you can't beat java.sun.com for tutorials and javaranch.com for people to pester.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > ClassNotFound ... please help


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 2 hosted by Hostway