0

I added my dictionary.accdb file under res/raw and res directories though I'am getting given file does not exist : dictionary error

Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
System.setProperty("com.healthmarketscience.jackcess.brokenNio","true");
System.setProperty("com.healthmarketscience.jackcess.resourcePath ","res/raw/");
Database database = null;
Table table = null;
try {
  database = DatabaseBuilder.open(new File("dictionary.accdb"));
} catch (IOException e) {
  e.printStackTrace();
}

and error log is

java.io.FileNotFoundException: given file does not exist: dictionary
saigopi.me
  • 14,011
  • 2
  • 83
  • 54

0 Answers0