Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to access the remote .mdb file in shared folder using java and jackcess from linux machine
    primarykey
    data
    text
    <p>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. </p> <p>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 .</p> <pre><code>package com.gg.main; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Map; import com.healthmarketscience.jackcess.Database; import com.healthmarketscience.jackcess.Table; import com.penske.model.Login; public class Test { public static void main(String args[]){ Table table = null; Database db = null; Login login = null; ArrayList&lt;Login&gt; rowList = null; try { rowList = new ArrayList(); db = Database.open(new File("//aa.bb.com/file/access.mdb")); table = db.getTable("Maintenance"); System.out.println(Database.open(new File("//aa.bb.com/file/access.mdb")) .getTable("Maintenance").getColumns()); for(Map&lt;String, Object&gt; row : table) { login = new Login(); if(row.get("Req_ID")!=null){ login.setId(row.get("Req_ID").toString()); } if(row.get("Name")!=null){ login.setName(row.get("Name").toString()); }if(row.get("Loc")!=null){ login.setLoc(row.get("Loc").toString()); } rowList.add(login); } login.setRowList(rowList); } catch (IOException e1) { e1.printStackTrace(); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload