• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Where to put jdbc jar files

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm writing my first java application which doesn't use odbc. (Up till now I've been writing servlets which run under Tomcat). I'm using the mm mysql driver. I've tried putting the jar file under the jdk1.3\lib & jdk1.3\lib\ext. Do I need to use the "classpath" variable (I'm using windows 2000)? I already have a "java_home" variable which I created for Tomcat, does this do anything for applications?
Steve
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the problem is with using Tomcat, have a look at this thread.
Dave.
 
Steve Campbell
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I already have it working under Tomcat (I put the jdbc driver jar file in "jakarta\lib"). My problem is that I'm trying to write an "application". I've since found that I can make it work by using the "-classpath" option when using the "java" command to run the program. I had read that if you place the jar files into "jdk\jre\lib\ext", and create a "java_home" environment variable pointing to the jdk, then the "java" command will pick up the jar files.
 
And inside of my fortune cookie was this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic