Solved

Why won't my java program run on this new machine???

Posted on 2014-03-05
8
432 Views
Last Modified: 2014-03-10
Hi -

I have an application written java which connects to an access database and runs perfectly well on at least 2 other machines.

However, I have a new machine, and the software doesn't work - giving the following error msg:

Exception in thread "main" java.lang.RuntimeException: Couldn't establish connection with "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=c:\users\dave\documents\modellingprojects\distributedtraining\livedataset.accdb;READONLY=false" for login "null"

This new machine has pretty much the same configuration, although it it did come pre-installed with Windows 7 home which I haven't changed.

Everything (as far as I can tell) is 64 bit.

Any ideas on what is going wrong? I not really a programmer / IT expert so am at a complete loss!! Your help will be greatly appreciated!!
0
Comment
Question by:INeedTechnicalSupport
  • 4
  • 3
8 Comments
 
LVL 34

Expert Comment

by:PatHartman
Comment Utility
Does the new PC have Access installed?  If it doesn't, you will need to install the ODBC driver separately.

Technically you are not using MS Access at all so you don't actually need Access installed.  You are using Jet which is a separate product.  It used to be installed with Windows but may not be any longer.

Also, I can't tell what version of Access was used to create the .mdb.  MS has dropped support for databases in the A97 format as of Access 2013 so that is a potential issue.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Do yourself a favour: use a portable and open Java db, such as Derby or HSQL db.
0
 

Author Comment

by:INeedTechnicalSupport
Comment Utility
Thanks Pat - Its a database originally created in access 2010  - and yes I do have access installed on this machine, although its the 2013.

However, I have a similar configuration on another machines and it works fine on that one - although maybe that had a previous version of access 2010 before it was upgraded (i can't remember). Could that be an issue? How would I install the ODBC driver separately? I'm wondering if its a 32bit Vs 64bit issue.

And CEHJ - I'm constrained by a client so, unfortunately, it has to be ms access :-(
0
 
LVL 34

Expert Comment

by:PatHartman
Comment Utility
Why is it an .mdb if you created it with A2010?

The 64-bit version of Office is not compatible with the 32-bit version.  Since the database is data only, it shouldn't be a problem but you may have a conflict with Java and 64-bit drivers.  You should probably be posting in a Java forum.  As I mentioned earlier, this is not an "Access" problem.  You are not using Access at all.  You are using Jet (.mdb) or ACE (.accdb).
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:INeedTechnicalSupport
Comment Utility
I thought i was posting in a java forum!
It certainly one of the topics I selected...first time using experts exchange - so forgive my mistakes...
0
 
LVL 34

Expert Comment

by:PatHartman
Comment Utility
Sorry, you are correct.  I got to it from an Access forum and didn't check the topic so it is my mistake not yours.  I don't know anything about Java except that I like drinking it:)
0
 

Accepted Solution

by:
INeedTechnicalSupport earned 0 total points
Comment Utility
okay - I am a numpty and have now found my problem!!
I'd accidentally installed a 32 bit version of the development tool (AnyLogic) I was using - which is clearly not going to like 64bit ODBC!!

Sorry and thanks for the help!!
0
 

Author Closing Comment

by:INeedTechnicalSupport
Comment Utility
I was being a numpty!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now