I need to connect to a pervasive database for my java application.
In the code below, my try
block will always throw a ClassNotFoundException
import java.sql.*;
public class TesterClass {
public static void main(String[] args)
{
try
{
Class.forName("com.pervasive.jdbc.v2.Driver");
}
catch(Exception e)
{
System.err.print("ClassNotFoundException: ");
System.out.println(e.toString());
System.err.println(e.getMessage());
}
}
}
I have already set up my CLASSPATH
system variable to point to:
C:\PROGRA~2\Pervasive Software\PSQL\bin\pvjdbc2.jar;
C:\PROGRA~2\Pervasive Software\PSQL\bin\pvjdbc2x.jar;
C:\PROGRA~2\Pervasive Software\PSQL\bin\jpscs.jar
I have no problem connecting to the database with C# .NET (if that matters)