• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Problem with a DSNless conecction to MS Access in Java 6 32 BIT

 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting the exception

My code is

I have tried without ",*.accdb" and ";Uid=;Pwd=;"
This code used to work.
 
Rancher
Posts: 1059
27
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the code used to work, then only a few things may have happened--and it's not in your code:

1 - did you get a system update? If so your ODBC driver changed.
2 - did you upgrade your Access version?
3 - one of he DLL's have become corrupt

This is always fun to find, but you probably will end up upgrading your JDBC or reverting your ODBC or Access version. You're first step should probably be to see if you can find a machine that the app still works on and start checking versions of DLL's and drivers--including to see if you can get a connection to the DB through the ODBC manager and then through the JDBC.
 
Alejandro Barrero
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Les, but I have to live with the environment that I have and I expect that this application can be used by others. Actually I am running it in the same machine that it used to run; the changes that I have made are changing to Windows 10, and installing Java 6. A few years ago the problem was because I started using Java in 64 bits but after some effort I found that the problem was with Java in 64 bits and when I went back to 32 bits it started working.
 
Les Morgan
Rancher
Posts: 1059
27
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you went from 7 to 10, that is fairly significant, from 8.1 to 10 is not that bad, but either may be enough to effect your Java 6.x

Like I said, establish a DSN with the ODBC Manager and see if you can get a connection, then try the JDBC though the DSN. If those work, then you should be good to go.
 
We begin by testing your absorbancy by exposing you to this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic