• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

pointbase driver problem

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!!
 
Pradyut Bhattacharya
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to provide the classpath
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic