This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
wood burning stoves
 
subject: JDBC Connection in Eclipse
 
Similar Threads
Help pl..where to mention classes12.zip in WSAD 5.0
JDBC Driver detection error when running as Windows Service
Jsp databse connectivity problem
package oracle.jdbc.driver does not exist
Tomcat DataSource