I am developing a Java app (with ODBC bridge - forgive me - the only paradox driver I have been able to obtain is the Microsoft ODBC driver) which works fine in Eclipse (and NetBeans) - connecting and obtaining data from an ancient paradox 5.x database. So long as it is run from inside my IDE, it compiles and runs flawlessly.
When I export it to a runnable jar, suddenly [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
occurs.
The jar is being run on the same box as my developing IDE, so I am confused about the cause. It is being run via console from a user account, as per the IDE.
My connection string is jdbc:odbc:Driver={Microsoft Paradox Driver (*.db )};DriverID=538; Fil=Paradox 5.X; DefaultDir=C:\\paradox\\database\\location\\
, obtained from connectionstrings.com, and as mentioned before, it works fine when run from the IDE.
The above seems to 'magically' create its own connection, avoiding the setup of a DSN. I am unsure quite how it does, but it works.
The only other thing I can think of that might be pertinent is that my PC is running a 64-bit OS (Windows Server 2008).