• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle database connection in eclipse/ remote server

 
Sean Cormican
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I know this is probably a fairly common problem but if anyone can point me to where I can find the resources to join a remote Oracle database,
namely the problem that I'm having is that I get this error :

oracle.jdbc.driver.OracleDriver cannot be resolved to a type

which as I understand is a result of not having the correct .jar files or classpaths in place.
Any information on this problem is greatly appreciated!!

thanks in advance.
 
Vigneswaran Marimuthu
Greenhorn
Posts: 24
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i do not know about the oracle drivers. even i am new to JAVA. but i used mysql. i guess you should have place the .jar file in the project which you have created through eclipse and you need to configure the build path in eclipse so that eclipse will automatically include the .jar file in the project.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vigneswaran is correct. You need to have classes12 or ojdbc14 or whatever driver you are doing in your runtime classpath. For a standalone program this is java -cp .... For a web application, it is a server setting.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic