1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

java database on the same directory

Discussion in 'Java' started by badkalel14, Oct 23, 2010.

  1. badkalel14

    badkalel14 New Member

    hello guys do you have any idea how to do a program where the database is inside the main project meaning the jar file doesnt rely on a computers database
  2. virxen

    virxen New Member

    you mean something like this?

    String myDB = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/data/month.MDB";
    DBConn = DriverManager.getConnection(myDB,"","");
    badkalel14 likes this.
  3. badkalel14

    badkalel14 New Member

    ah! this really answers my question! thank you virxen! thank you man!

Share This Page