Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I install JDBC drivers for Oracle?!?....

843789May 16 2010 — edited May 16 2010
i have a program that has this line:
import oracle.jdbc.pool.OracleDataSource;

that gives this error when I compile it:
package oracle.jdbc.pool does not exist

So I think I need to install JDBC drivers for Oracle. (?)

I went here: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html]
and downloaded the files for JDBC Thin.

Then I followed this: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/111070_readme.html]
by entering these commands (I'm using Ubuntu):
export CLASSPATH=$CLASSPATH:/path/to/files/ojdbc6.jar
export CLASSPATH=$CLASSPATH:/path/to/files/orai18n.jar
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/files

When I type echo $CLASSPATH I can see that those commands worked, but it hasn't made any difference when I try to compile.
I still get the same error. Is it because I didn't do anything about the .so files? The readme page didn't mention them in the installation section.

Please help! I am so stuck...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2010
Added on May 16 2010
1 comment
159 views