Java Application. Undefined function 'replace' in expression

人走茶凉 提交于 2019-12-24 05:57:38

问题


My Java application works well on two of my colleague's computers, however it will not run on mine.

The application reads a spreadsheet, creates tables in access from it and then compares them. The application is able to read and create the tables, but will not compare them.

The error I am getting is

 java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Undefined function 'replace' in expression.

I have read the other threads on this but wasn't able to gain much insight. Since we know the code works, is there something I can check on my machine that might be preventing this from working?

Any help would be greatly appreciated.

// Connection Code //

Connection dbConnection = null;
String ACCESSDB_Driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String connURL="jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" + databasePath.trim() + "\\" + accessFileName.trim() + ".accdb;";

回答1:


The answer to this question was I was using Microsoft Access Driver (*.mdb, *.accdb) 12.x instead of 14.x



来源:https://stackoverflow.com/questions/45242437/java-application-undefined-function-replace-in-expression

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!