Relative path to connect to ms accdb

I'm using NetBeans and this is my project folder:

My executable is in the 'dist' folder. About the code,in my connection class I used the following string:


So i used a relative path from dist folder.

This works the first time i execute the program and correctly connect to database, but the next times i have the following exception:

"given file does not exist: .\mydb.accdb"

Obviously the file exists and it works the first time as i wrote. I'm also sure i'm doing something wrong. Can someone help me? Thank you...

Read More »

By: StackOverFlow - Tuesday, 20 November

Related Posts