how to use SQLServer/JDBC from compiled Matlab code?
显示 更早的评论
Hi, my matlab code successfully calls SQLServer via JDBC when running the code from the Matlab workbench.
I've done this via editing the classpath.txt and librarypath.txt
However, when I compile my Matlab code and try and run it on another machine I get a JDBC Driver Error - Driver not found / loaded.
I have installed the Matlab runtime on the other machine and ran other Matlab programs, I just can't use JDBC. I have edited the runtime classpath.txt and librarypath.txt files.
Any help much appreciated!
Tom
采纳的回答
更多回答(1 个)
Chirag Gupta
2011-12-21
0 个投票
Try and use the javaaddpath command in the code to set up the javapath instead of classpath.txt
类别
在 帮助中心 和 File Exchange 中查找有关 Database Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!