| Author |
Configuring an IDE w/2 JDBC Drivers
|
Dale DeMott
Ranch Hand
Joined: Nov 02, 2000
Posts: 514
|
|
I'm working w/Eclipse and currently have in my "RUN" config [under the argument tab] the following line. -Djdbc.drivers=oracle.jdbc.OracleDriver This is great if I want to only run 1 database. I have 2 that I need to use. Does anyone know how I can cofigure my eclipse to accept 2 jdbc drivers for 2 databases? TIA
|
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
|
 |
Scott Selikoff
Saloon Keeper
Joined: Oct 23, 2005
Posts: 3652
|
|
|
I believe the command line option you list is more of a convenience option than a requirement. You can leave it off altogether, add both jars to the classpath, and then in the code registrar which jdbc driver you want to use during runtime.
|
My Blog: Down Home Country Coding with Scott Selikoff
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
That will work, assuming there is a driver for that url in your classpath. [ January 18, 2007: Message edited by: Paul Sturrock ]
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Dale DeMott
Ranch Hand
Joined: Nov 02, 2000
Posts: 514
|
|
Here's what I'm trying... Here's the method... The problem is that the class that I'm registering does NOT extend the Driver class that the driver manager wants it cast to. Any suggestions?...
|
 |
 |
|
|
subject: Configuring an IDE w/2 JDBC Drivers
|
|
|