G
Gordon Levi
I have an application that uses the JDBC-ODBC driver that worked in
the (Netbeans) IDE but failed to find the (Access) database when using
the default file association under Windows 7. In the hope of getting
some more information I ran the application in a command line window
using javaw and it worked.
In summary, clicking on a shortcut to "C:\src\myapp\dist\myapp.jar"
file in Windows 7 failed because it did not find my database although
it invoked myapp. Clicking on a shortcut to
"C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
works. Can someone explain why?
In case it is relevant, I did try the jar file's directory and the
database directory for the "Start in:" directory.
the (Netbeans) IDE but failed to find the (Access) database when using
the default file association under Windows 7. In the hope of getting
some more information I ran the application in a command line window
using javaw and it worked.
In summary, clicking on a shortcut to "C:\src\myapp\dist\myapp.jar"
file in Windows 7 failed because it did not find my database although
it invoked myapp. Clicking on a shortcut to
"C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
works. Can someone explain why?
In case it is relevant, I did try the jar file's directory and the
database directory for the "Start in:" directory.