Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

pointbase driver problem

  Asked By: Thelma    Date: Jun 06    Category: Java    Views: 519
  

i have written a small program to connect to pointbase
server version

the coding: -

----------------------------------------------------------------

import javax.sql.*;
import java.sql.*;
import java.util.*;
import java.lang.*;


public class con1 {
public static void main(String args[])
{
try {

Class.forName("com.pointbase.jdbc.jdbcUniversalDriver");
Connection connection =
DriverManager.getConnection("jdbc:pointbase:user1",

"PBPUBLIC", "PBPUBLIC");
DatabaseMetaData meta = connection.getMetaData();
System.out.println("Database:
"+meta.getDatabaseProductName());
System.out.println(" version
"+meta.getDatabaseProductVersion());
System.out.println("User Name:
"+meta.getUserName());
connection.close();
}
catch(Exception ex) {
System.out.println(ex);
System.exit(0);
}
}
}

--------------------------------------------------------------------

i can easily connect to it via the console

but when i run the above program i get the message

java.lang.ClassNotFoundException:
com.pointbase.jdbc.jdbcUniversalDriver

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on pointbase driver problem Or get search suggestion and latest updates.




Tagged: