I am trying to use a custom java driver( UcanAccess ) to connect to a Access database. I was able to add the java file and its dependencies to my java path. However, the driver requires me to set a java parameter with the path to the driver. Without setting the path I get the following error message:The UCANACCESS_HOME system variable isn't defined: it should be: -DUCANACCESS_HOME=<your path to the UCanAccess-3.x.x-bin folder>. Does anyone know how to set this java parameter ?

 채택된 답변

Shruti Sapre
Shruti Sapre 2015년 11월 16일

0 개 추천

Hi Ritesh,
Are you trying to connect to Access using MATLAB, and are trying to set the system variable in MATLAB?
In general, you could pass the required argument as a VM argument to a Java application:
If connecting through MATLAB, you could try placing the -D directive in the java.opts file based on the example below:
Hope this helps!
-Shruti

댓글 수: 1

Ritesh Shah
Ritesh Shah 2015년 11월 16일
Thanks Shruti !!! That is exactly what I needed.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

태그

질문:

2015년 11월 11일

댓글:

2015년 11월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by