Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2013
    Posts
    1

    Unanswered: pervasive sql to jva eclipse

    hi,
    i'm trying to connect java to pervasive that's what i do :
    in cmd :
    set CLASSPATH=%CLASSPATH%;C:/PVSW/Bin/pvjdbc2.jar
    set CLASSPATH=%CLASSPATH%;C:/PVSW/Bin/pvjdbc2x.jar
    set CLASSPATH=%CLASSPATH%;C:/PVSW/Bin/jpscs.jar

    set PATH=%PATH%; C:/PVSW/Bin

    then in eclipse :

    import java.sql.*;
    import java.io.*;

    public class pervasive {

    public pervasive()throws Exception{

    Class.forName("com.pervasive.jdbc.v2.Driver");
    String URL1 = "jdbcervasive://Ip_adress:1583/DEMODATA";


    try
    {
    DriverManager.getConnection(URL1,"Informatique02", "PSW");


    }
    catch(SQLException e)
    {

    e.printStackTrace();
    }

    }


    public static void main(String[] args) throws Exception{

    new pervasive();





    }

    }



    when i run the application :


    Exception in thread "main" java.lang.ClassNotFoundException: com.pervasive.jdbc.v2.Driver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at jdbc.pervasive.<init>(pervasive.java:15)
    at jdbc.pervasive.main(pervasive.java:36)


    can any one help me please urgent. thank you

  2. #2
    Join Date
    Dec 2001
    Posts
    1,109
    Provided Answers: 4
    The last time I worked in Eclipse with the Pervasive JDBC driver, I added the JAR to the environment. A quick search found this link that might help.
    Mirtheil Software
    Certified Pervasive Developer
    Certified Pervasive Technician
    Custom Btrieve/VB development
    http://www.mirtheil.com
    I do not answer questions by email. Please post on the forum.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •