Home > Software design >  Can not read access file from Tomcat server
Can not read access file from Tomcat server

Time:10-28

I have a Java-Spring web application running on Tomcat server. Tomcat server is installed in C: drive (C:\Program Files\Apache Software Foundation\Tomcat\). I want to read an access database file which is also saved in C: drive (C:\Some Folder Name\). I have the following code which works properly when the application is running from eclipse, but does not work on Tomcat server:

Connection conn = DriverManager.getConnection("jdbc:ucanaccess://C:\\Some Folder Name\\some.mdb");

How to solve this?

Thanks in advance

  • Related