Skip to Main Content

Java Database Connectivity (JDBC)

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!

Unable to load the jdc driver

843854Dec 6 2003 — edited Dec 6 2003
Hi,

I am using mckoi, but I don't succed in loading the jdbc driver:
Class.forName("com.mckoi.JDBCDriver");
This line throw a ClassNotFoundException. But:
cd $CLASSPATH; ls | grep mkjdbc.jar
mkjdbc.jar
So the jar file is in the CLASSPATH.

I try also:
import com.mckoi.JDBCDriver;
But when it compile:
javac ConnectToServerDemo.java
ConnectToServerDemo.java:2: package com.mckoi does not exist
import com.mckoi.JDBCDriver;

Something strange:
java -cp mckoidb.jar com.mckoi.tools.JDBCQueryTool -u "admin_user" -p "aupass00"
It's work very well !

I don't understand and I have no idea.

It will be fine if someone can help me.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2004
Added on Dec 6 2003
5 comments
103 views