This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i am very new to java and i have been asked to connect to an oracle database through my servlet. i performed the exact same task with an access database but i am not able to do the same with an oracle database. i have made the necessary changes in including the jar files and i have also included the driver in the classpath. what more is to be done??? also when i give the command to view the classpath in eclipse the classpath does not show the added path of the oracle driver.
Before checking the conectivity from a servlet,Can you please the it from "Data Source Explorer" view of Eclipse IDE.
for Data Source Explorer navigate : Window > Show View > Datasource Explorer.
fill all the database credential detail and test the connection.
if it works there then if you are not wrong at code it should work.
good luck :-)
Edited to remove direct email: please read UseTheForumNotEmail. If you're dead-set on not helping anybody else, use a private message.
Joined: Mar 18, 2010
thanks for helping me out. i don't seen to have the plugin feature for the datasource view in my eclipse. is there any other way to check whether the connection has been made successfully. i get the exception that no suitable driver found.
As far as my knowledge goes(which is very very very less when it comes to java) i get this exception when the jar files required are not put in the classpath right??
i am sorry if my doubts sound really dumb
Joined: Mar 11, 2010
I guess the version of your jar file is not compatible.
try with different jar file.
Joined: Mar 18, 2010
tried with a different driver too...!! still nt workin
What *specific* error are you getting, and under what circumstances? Please see TellTheDetails and ItDoesntWorkIsUseless: it's really important that you help us help you; don't make us ask every little question.