• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC Connection in Eclipse

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic