Rich Vicary

Greenhorn
+ Follow
since Jul 09, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rich Vicary

Madhan Sundararajan Devaki wrote:As you have suspected, you need to use a driver compatible with 64-Bit JVM. Also, you need to create a DSN to use the MS-ACCESS database in your application.



Do you have any guidance / advice on how to do this, and what is best to use; everything I have tried has so far failed?

Thanks
Hi all,

I've inherited a system whereby a JAVA JAR file connects to a local database. This works absolutely fine on Win x86 but we're unable to get working on any Win x64.

When running the batch file(text below) I get presented with the error message "Database Access fails! Mure sure 'database.mdb' is in your local path. [Microsoft][ODBS Driver Manager] Data source name not found and no default driver specified"

I've had a look in ODBC sources but I don't have to add anything for Win x86 so have no idea of what to enter for x64.

I've read a few things about different drivers for x64 but have had no luck with any fixes suggested. I've tried adding the program and DB path to the path of windows environmet but still nothing.

I'm a total newb when it comes to this and have no experience at all so i'm hoping someone has come across this before and has an easy solution!

The batch file we run is as follows:

@echo off

set JAVA_HOME=c:\program files\java\jreVERSION_NUMBER\bin

set DATATBASE_DIR=lib
set PATH=%DATABASE_DIR%;%JAVA_HOME%;%PATH%
start "" javaw -jar lib/database.jar

Apologies if this is not in the right place.

Thanks

Rich