eclipse - Java - I can't open Microsoft Access file through executable jar -
eclipse - Java - I can't open Microsoft Access file through executable jar -
i'm trying access microsoft access database using next code:
class.forname("sun.jdbc.odbc.jdbcodbcdriver"); string database = "jdbc:odbc:driver={microsoft access driver (*.mdb, *.accdb)};dbq="+ dbpatch + "/silverdb.accdb"; connection conn = drivermanager.getconnection(database, "", ""); statement s = conn.createstatement();
the problem when run through eclipse, goes fine, when generate executable jar , run it, doesn't work. knows reason?
thanks!
check version of java running in eclipse vs when double click jar. if running java 7 in eclipse , java 8 when doubleclick, may explain problem.
whatever issue, if don't post stack trace of failure no 1 here going able help you. "it doesn't work" isn't description allows seek help.
java eclipse jdbc
Comments
Post a Comment