+ Without the EXACT error (title, text and numbers) you are receiving there's no way to be able to help you.
+ We also need to know if you have encrypted the back/front-ends and it would be helpful to see the connection string you attempted to use (of course, replace the usernames, password, and other sensitive-bits with something generic OR check
https://www.connectionstrings.com/access/ to make sure you have the correct string.. :)
+ This question appears to be more JAVA than Access related so I'll move it over to the JAVA forum.
-z