Not able to connect to database using jdbc

Respected sir/madam,

I am new to java and i am trying to connect to database which is necessary for me in project when i wrote the code using class.forName i am able to compile but when runnig i am getting two exceptionns one is oracle.jdbc.driver.oracledriver not found or excetion in thread main class not found please help me

[341 byte] By [Subash_1983a] at [2007-11-27 9:05:18]
# 1
your error message tells you exactly whats wrong. Try to type that error msg in google and i bet you will find a thread related to that issue, meaning your driver for oracle is missing.
lrngjavaa at 2007-7-12 21:39:23 > top of Java-index,Java Essentials,New To Java...
# 2

Subash,

1) Please refrain from cross-posting (posting the same message into two or more forums). This question was better asked in the JDBC forum as you eventually put it but you already posted here so if that happens again next time just leave the original thread be.

2) Your compilation classpath and your runtime classpath are not related. As a matter of fact with well written JDBC code and under most conditions you should not need your driver in your compilation classpath at all, only your runtime one.

3) Your driver is not in your runtime classpath. That is the error that you need to resolve.

cotton.ma at 2007-7-12 21:39:23 > top of Java-index,Java Essentials,New To Java...