This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC Connection in Eclipse

 
Boon Subra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to get Connection in Oracle.
I dropped the classes12.jar in E:\jdk1.4.1\lib\classes12.jar.
I also set the Classpath Variable in Windows-->Preferences-->java-->classpath variable

I also imported the project SIPortal which I am using
The problem is I am not able to get the value of the connection.
Its throwing error like:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
But I am able to get the connection if I run the same program in Textpad.
Its buggibg me for the past 2 days. I am not able to proceed.Pl. help me out.
Thanks in advance,
Bhuvana
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to put 'classes12.jar' in the projects classpath.
"Right clik on the project 'SIPortal'->Properties->Java Build Path->Libraies" (you can ref. to the classpath variable you have made)
Rene
[ January 03, 2004: Message edited by: Rene Larsen ]
 
Boon Subra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rene,
Thanks for the support.
I did the following .its asking for folder and displays only the project name and not the jdbc class files.
project 'SIPortal'->Properties->Java Build Path->Libraies"
Pl. help
Thanks,
Bhuvana
 
Boon Subra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rene,
Thanks I got it.
Please let me where to put the db.properties file for a Project SIPortal.I am using this for connection pooling.
Thanks in advance,
Bhuvana
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bhuvana Bala:
Please let me where to put the db.properties file for a Project SIPortal.I am using this for connection pooling.

You can put your property file in the 'src' folder then will the property file automatic be put in the projects classpath.
You just have to remember that the path you call 'db.properties' with, is the same under the 'src' folder.
e.g. if you call db.properties like 'config/db.properties' then you'll put it in 'src' like this: 'src/config/db.properties'
Rene
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic