Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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:
  #1  
Old August 25th, 2001, 11:54 AM
dave_mwi dave_mwi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 94 dave_mwi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 49 m 42 sec
Reputation Power: 13
Send a message via AIM to dave_mwi
Unhappy Newbie question (my bad...) mm.mysql-2.02-bin.jar

Ok, Im really a newbie at this so I ask for your patience and understanding

Im trying to install the mm.mysql-2.0.2-bin.jar file on my tomcat installation on a virtual server FreeBSD. As I understand it, this is the JDBC driver for mysql, or one of them at least.

I have searched and searched but cannot find clear instructions on where to put this file, or how to "register" the driver with my java installation. The mm.mysql jar file above is a binary and the only instructions were simply put it in your class path and youre ready to go. I may be stupid, but im not really sure how to determine exaclty where my class path is.

The latest place I have placed it is in /tomcat/lib/ and also in usr/local/share/java/classes each of which directory contains a number of other jars. And then in my tomcat.properties it has:

wrapper.classpath=@JSERV_CLASSES@
wrapper.classpath=@JSDK_CLASSES@

The only thing I can figure is that these are pointing to or at least are similar in some way to /usr/~www/conf/jserv/jserv.properties where these lines are found:

wrapper.classpath=/usr/local/share/java/classes/ApacheJServ.jar
wrapper.classpath=/usr/local/share/java/classes/jsdk.jar

and I added:

wrapper.classpath=/usr/local/share/java/classes/mm.mysql-2.0.2-bin.jar

Can anyone tell me if Im headed in the right direction here?? Am I completely in the dark ?? I really am a fan of reading the install and readme docs because you can learn a lot from them, but I feel like I keep hitting dead ends here...any suggestions and direction is much appreciated.

Dave
__________________
Dave

Reply With Quote
  #2  
Old September 4th, 2001, 01:48 PM
i.maizel i.maizel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 12 i.maizel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I may be wrong, but I don't thing you need to put your JAR file in any special place. You can put it anywhere, but you need to include it into the class path of the user who is running the servlet engine.
E.g. If you are using C shell, you edit the .cshrc file with this line:
setenv CLASSPATH ${CLASSPATH}:/path/to/jdbc/driver/filename.jar

Then you should be able to load the driver from your Java code.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Newbie question (my bad...) mm.mysql-2.02-bin.jar

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap