• Post Reply Bookmark Topic Watch Topic
  • New Topic

UCanAccess with java.lang.ExceptionInInitializerError  RSS feed

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • 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?
 
K. Tsang
Bartender
Posts: 3615
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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: 3615
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad it works now
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!