ClassNotFoundException 
Author Message
 ClassNotFoundException

I've tried implementing the JDBC SqlBase driver from CenturaSoft, but 'no
go'.  I've also downloaded HypersonicSQL and have attempted  to run the
FindFile demo, but I get a 'ClassNotFoundException'.  I have a feeling that
the problem is an incorrect configuration setting on my client machine.

I've tried copying the class(and jar) files into the same directory as the
test test program and that didn't help.  I also tried to use the 'classpath'
and 'cp' command line parameters to explicitly declare the locations of the
class files and that didn't work either.

Any help would be appreciated.

Win98, JDK1.2.2
PATH=....;C:\JDK1.2.2\BIN
CLASSPATH=.;c:\com\centurasoft\java\sqlbase;c:\java;c:\hsql\demo

Here is the test program that produces the error:

import java.sql.*;

public class ConDis {
  public static void main (String args[]) {
    try {
      Class.forName( "centurasoft.java.sqlbase.SqlbaseDriver" );
    } catch (ClassNotFoundException msg ) {
      System.out.println( "\n" + msg + "\n" );
    }
  }

Quote:
}

Thanks.

M Longmire
Dover, NH



Mon, 16 Sep 2002 03:00:00 GMT
 ClassNotFoundException

Never used CenturaSoft before, and at risk of telling you something obvious,
is the CLASSPATH variable supposed to be
c:\com\centurasoft\java\sqlbase\somthing.jar
or is it really a directory?
If it is a directory then your classpath should probably be c:\ since it looks
like you have
a directory com\centurasoft\java.

Your classpath should point to the top of the directory structure.
I.E.

if you have a class called com.centurasoft.java.sqlbaseDriver
and that is in the dirctory
c:\centurasoft\com\centurasoft\java\sqlbaseDriver.class
your class path should include c:\centurasoft
and not the c:\centurasoft\com\centurasoft\java dirctory.

Hope that makes sense.

Quote:

> I've tried implementing the JDBC SqlBase driver from CenturaSoft, but 'no
> go'.  I've also downloaded HypersonicSQL and have attempted  to run the
> FindFile demo, but I get a 'ClassNotFoundException'.  I have a feeling that
> the problem is an incorrect configuration setting on my client machine.

> I've tried copying the class(and jar) files into the same directory as the
> test test program and that didn't help.  I also tried to use the 'classpath'
> and 'cp' command line parameters to explicitly declare the locations of the
> class files and that didn't work either.

> Any help would be appreciated.

> Win98, JDK1.2.2
> PATH=....;C:\JDK1.2.2\BIN
> CLASSPATH=.;c:\com\centurasoft\java\sqlbase;c:\java;c:\hsql\demo

> Here is the test program that produces the error:

> import java.sql.*;

> public class ConDis {
>   public static void main (String args[]) {
>     try {
>       Class.forName( "centurasoft.java.sqlbase.SqlbaseDriver" );
>     } catch (ClassNotFoundException msg ) {
>       System.out.println( "\n" + msg + "\n" );
>     }
>   }
> }

> Thanks.

> M Longmire
> Dover, NH



Mon, 16 Sep 2002 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. ClassNotFoundException

2. java.sql.Clob ClassNotFoundException

3. ClassNotFoundException is thrown in applet

4. java.sql.Clob ClassNotFoundException

5. ClassNotFoundException

6. ClassNotFoundException

7. JDBC Connection Problem "CLASSNOTFOUNDEXCEPTION" in TomCat

8. ClassNotFoundException

9. strange ClassNotFoundException under mod_jserve

10. ClassNotFoundException: myDriver.ClassName

11. Servlets, Oracle drivers and ClassNotFoundException

12. ClassNotFoundException


 
Powered by phpBB® Forum Software