This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes pointbase driver problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "pointbase driver problem" Watch "pointbase driver problem" New topic
Author

pointbase driver problem

Pradyut Bhattacharya
Ranch Hand

Joined: Aug 12, 2004
Posts: 63
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 ointbase: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

any help

thanks

Pradyut
http://pradyut.tk


Pradyut
http://pradyut.tk/
Jyothi Lature
Ranch Hand

Joined: Oct 31, 2001
Posts: 60
Hi,

Hope you have set the classpath pointing to the jar file/zip file containing this (com.pointbase.jdbc.jdbcUniversalDriver) driver class.

Try setting the classpath... it will work!!!


Jyothi<br />Sun Certified Java Programmer<br />Brainbench Certified for Javascript
Pradyut Bhattacharya
Ranch Hand

Joined: Aug 12, 2004
Posts: 63
how to provide the classpath
 
 
subject: pointbase driver problem
 
Similar Threads
Pointbase : How can I create a stored procedures with Pointbase database?
Creating a database with Sun Java Application Server 9
JDBC and Pointbase
Example of INSERT
Deplyoing a JSP page in Sun One Application server 7