• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UCanAccess with java.lang.ExceptionInInitializerError

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I have actually done two things:
1) import the


And

2) Add to java.policy file the following entry:
permission java.net.SocketPermission "127.0.0.1", "connect, resolve";

Added both to jre and jdk in the security folder.
But still having the mentioned error. What reasons could it be?
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you have those dependencies in your classpath?

From http://ucanaccess.sourceforge.net/site.html

Dependencies

UCanAccess 2.x.x requires (at least) the following dependencies in your classpath:

jackcess-2.0.0.jar or later
commons-lang-2.4.jar
commons-logging-1.0.4.jar
hsqldb.jar(2.2.5)

In order to opening encrypted file you must use UCanAccess 2.x.x with jackcess-encrypt-2.x.x and all related dependecies

Old versions of UCanAccess (0.x.x or 1.x.x) require (at least) the following dependencies in your classpath:

jackcess-1.2.9.jar or later
commons-lang-2.4.jar
commons-logging-1.0.4.jar
hsqldb.jar(2.2.x)

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello K Tsang,
It's Magic, it works now
Thanks a lot
Have a nice day
Jack
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Glad it works now
 
I just had the craziest dream. This tiny ad was in it.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic