MATLAB: How to use JDBC driver for MATLAB stand-alone application

databaseDatabase Toolboxjdbc driverMATLABMATLAB Compilerstandalone application

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".<

Best Answer

I found the answer here: Stack Overflow and here: MATLAB Answers
Thanks a lot for everyone!
Related Question