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 package oracle.jdbc.driver does not exist 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 "package oracle.jdbc.driver does not exist" Watch "package oracle.jdbc.driver does not exist" New topic
Author

package oracle.jdbc.driver does not exist

Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
I use IntelliJIDEA 9.0.3 for my j2ee web application development. One of my module uses oracle database connection. But I get the error package oracle.jdbc.driver does not exist, package oracle.sql does not exist. I did some google and looked into previous posts and

I tried the following solutions but I still get the error

1. In the module setting -> dependencies-> classes12. Created the project library called classes12 and I have included the sources for classes12.jar.

This is my path C:/app/username/product/11.1.0/client_1/oui/jlib/classes12.jar

2. I have copied the classes12.jar to the C:\Program Files\Java\jdk1.6.0_21\jre\lib\classes12.jar.

I have my path
C:\app\username\product\11.1.0\client_1\bin;C:\app\username\product\11.1.0\client_1\oui\jlib;C:\Program Files\Java\jdk1.6.0_21\jre\lib\classes12.jar;C:\Program Files\Java\jdk1.6.0_21\jre\lib\classes12.jar;C:\app\username\product\11.1.0\db_1\oc4j\jdbc\lib\orai18n.jar;C:\app\username\product\11.1.0\db_1\owb\wf\ojdbc14.jar;

and classpath set to
.;C:\Program Files\Java\jdk1.6.0_21\jre\lib\classes12.jar;C:\app\username\product\11.1.0\db_1\oc4j\jdbc\lib\orai18n.jar;C:\app\username\product\11.1.0\db_1\owb\wf\ojdbc14.jar;

3. The module also has the jar file in its package folder



I am not sure what I am missing. Can anyone please help me solve this issue.


SCJP 6.0
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Please don't use code tags for text -- you can see how it screws up the formatting of your post. Making your posts hard to read is not a good way to get people to help you with your questions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
Bear Bibeault wrote:Please don't use code tags for text -- you can see how it screws up the formatting of your post. Making your posts hard to read is not a good way to get people to help you with your questions.


I am sorry I did not mean to. Thought it would differentiate. but that did not work.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: package oracle.jdbc.driver does not exist
 
Similar Threads
Installed Oracle 10g in my Local system and now I am having problem connecting to it
JDBC-CONNECTION POOL
JDBC Connectivity to Oracle 11g on Windows 7
java.sql.SQLException: No suitable driver
java.lang.ClassNotFoundException: oracle:jdbc:driver:OracleDriver