• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jackcess code not working in linux machine.  RSS feed

 
christina sonali
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Team

This is my first post.
I am trying to open the remote .mdb file which is in shared folder in Windows machine from the linux machine using jackcess lib.
and set the table values in busineess object.
I wrote the below code.

Scenario 1 :
I have run the code from windows machine it is working fine.
Scenario 2 :
If i run the code from linux machine it is getting file not found exception.
Hope it should be small mistake. Please correct me what am missing here .


Thanks in Advance
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your code depends on a file location. That location is available from Windows but not from Linux. How do you access the file from the linux command line?

P.S Do you have to call Database.open twice? Your System.out.println statement is calling open again which is a bit risky. Generally you want to avoid putting functional code in log out statements.
 
christina sonali
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

This is how I access the file from linux machine.
db = Database.open(new File("//aa.bb.com/file/access.mdb"));
I am getting the file not exception. is there any other way to open the file in linux machine using jackcess.
please help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!