aspose file tools*
The moose likes JDBC and the fly likes configure Type 4 driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "configure Type 4 driver" Watch "configure Type 4 driver" New topic
Author

configure Type 4 driver

Rakesh Mehra
Ranch Hand

Joined: Nov 20, 2007
Posts: 31
I dont know steps to configure Type 4 driver irect pure Java .
i have jdk1.5,eclipse 3.2,sqlserver'00,tomcat 4.1.x configured what steps i need to follow.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
There isn't much to configure beyond putting the jar file containing the driver in a place where your code can access it, like the WEB-INF/lib directory of your web app. What problem are you facing?


Ping & DNS - my free Android networking tools app
Rakesh Mehra
Ranch Hand

Joined: Nov 20, 2007
Posts: 31
Originally posted by Ulf Dittmer:
There isn't much to configure beyond putting the jar file containing the driver in a place where your code can access it, like the WEB-INF/lib directory of your web app. What problem are you facing?


The problem i'm facing is i dont know steps to configure type 4 driver for any database.I have 3 databases installed on system mysqlserver,mysql,oracle and i want to configure type 4driver for them. Please let me know what .jar files i need to download and steps to be folowed.
aleast a sample code would be helpful.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
You can download the drivers from the respective DB vendors' web sites. Just search for "JDBC driver" on the site and it should lead you to the download section. The drivers should also come with instructions on how to use them. For type 4 drivers, there isn't more to it than adding the jar file to the classpath, and using the correct class name and connection string, both of which will be mentioned in the documentation.
 
wood burning stoves
 
subject: configure Type 4 driver