Meaningless Drivel is fun!*
The moose likes IDEs, Version Control and other tools and the fly likes JDBC Connection in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JDBC Connection in Eclipse" Watch "JDBC Connection in Eclipse" New topic
Author

JDBC Connection in Eclipse

Boon Subra
Ranch Hand

Joined: Jul 18, 2001
Posts: 69
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

Joined: Oct 12, 2001
Posts: 1179

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 ]

Regards, Rene Larsen
Dropbox Invite
Boon Subra
Ranch Hand

Joined: Jul 18, 2001
Posts: 69
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

Joined: Jul 18, 2001
Posts: 69
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

Joined: Oct 12, 2001
Posts: 1179

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC Connection in Eclipse