facebook

[Closed] Problem with Pointbase DB with MyEclipse

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #242280 Reply

    ashu_munjal
    Member

    Hi,

    I am pretty new to MyEclipse, all i am trying to do is to connect to pointbase DB thru my struts application.
    But it says ClassNotFound exception for “com.pointbase.jdbc.jdbcUniversalDriver”.
    But when i run the application without struts on MyEclipse or on JBuilder, it runs fine.

    Here is the code to connect to pointbase DB.

    //********************
    Connection getConnection() throws DAOException
    {

    // The PointBase Universal JDBC Driver

    String l_driver = “com.pointbase.jdbc.jdbcUniversalDriver”;
    String l_URL = “”;
    Connection l_conn=null;

    l_URL = “jdbc:pointbase:server://localhost//demo”;

    // Database UserID (4.2)
    String l_UID = “MEDREC”;
    // Database Password
    String l_PWD = “medrec”;

    try {
    // Load the PointBase JDBC Driver
    Class.forName(l_driver);//.newInstance();
    // Establish connection with the database and return a Connection object
    l_conn = DriverManager.getConnection(l_URL, l_UID, l_PWD);
    System.out.println(“got connection”);
    }catch(Exception e)
    {
    System.out.print(“here in errors :: “+e.getMessage());
    e.printStackTrace();
    }
    return l_conn;
    }
    //*******************

    Please help
    Ashu

    #242283

    Riyad Kalla
    Member

    Ashu,
    Your driver needs to be added to your application server’s runtime environment. THat means you need to navigate to Window > preferences > MyEclipse > Application Servers and select your connector, then go to it’s Paths settings. From there click “Add” next to Append to Classpath and find the JAR or ZIP that contains the pointbase driver and add it, hit OK and restart your server.

    #242284

    ashu_munjal
    Member

    Hey

    thanks a lot for ur reply.

    U guys r doin great job.

    actually i had included drivers in project preperties, i dint know that it had to be included the way you told me..

    Anyways Thnks a lot agn.
    Ashu

    #242285

    Riyad Kalla
    Member

    Glad it is working.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Problem with Pointbase DB with MyEclipse

You must be logged in to post in the forum log in