How to use JDBC driver for MATLAB stand-alone application?
4 次查看(过去 30 天)
显示 更早的评论
When I'm using JDBC driver to database connection (PostgreSQL) in MATLAB, I have no problems. But after creation stand-alone application and its installing to another PC (without MATLAB, of course, and without Internet connection, conceivably), the application doesn't work because of "Unable to find JDBC driver".
I guess it's because of static paths (%MATLABROOT%/toolbox/local/classpath.txt), which are absent in another PC. Please, who knows, tip me a wink, how do connect to database using JDBC driver storing with application (I mean how to explain MATLAB to use dynamic classpath)? Or, maybe, there is another way to solve the problem?
Thanks in advance.
UPD
I have appended a line:
javaclasspath('postgresql-9.4-1203.jdbc41.jar')
to get dynamic path, and got an error: > Undefined variable "com" or class "com.mathworks.toolbox.database.databaseConnect".<
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!