Why does my compiled application not locate a MATLAB built-in Java class with MATLAB Compiler 4.0 (R14)?
Show older comments
I created an application and then compiled it with MATLAB Compiler. I am modifying the dynamic Java classpath in my MATLAB code using javaclasspath as follows:
javaclasspath('/usr/oracle/jdbc/classes12.jar')
My application works fine in MATLAB and on the development machine, but when I execute it on the deployed machine with the MCR, I receive the following error.
??? Undefined variable "com" or class "com.mathworks.toolbox.database.databaseConnect".
Error in ==> database.database at 78
Error in ==> testdb at 3
MATLAB:undefinedVarOrClass
Accepted Answer
More Answers (0)
Categories
Find more on Deploy to Java Applications Using MWArray Data API in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!