aspose file tools*
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
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: 61624
    
  67

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.
 
jQuery in Action, 2nd edition
 
subject: package oracle.jdbc.driver does not exist