Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-03-05
8
Medium Priority
?
441 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 39

Expert Comment

by:PatHartman
ID: 39906883
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
ID: 39906913
Do yourself a favour: use a portable and open Java db, such as Derby or HSQL db.
0
 

Author Comment

by:INeedTechnicalSupport
ID: 39906949
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 39

Expert Comment

by:PatHartman
ID: 39907172
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
 

Author Comment

by:INeedTechnicalSupport
ID: 39907499
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 39

Expert Comment

by:PatHartman
ID: 39907565
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
ID: 39908776
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
ID: 39917028
I was being a numpty!!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

722 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