Database Toolbox Interface for MongoDB - standalone

4 views (last 30 days)
Heyhey,
I'm using this part of Matlab
In Matlab is everything ok, but if I deploy the program
deploytool -package 'XXX.prj'
and try to get it running on another PC, I will get the error
mir_illegal_import_argument
I think it's close to this problem:
But I don't know, which java files I should include. Does anybody have an idea?
The error looks like this:
Error using mongo
Error: File: C:\Users\XXX\AppData\Local\Temp\XXX\mcrCache9.3\XXX\toolbox\database\database\supportpackages\mongodb\mongo.m Line: 1434 Column: 16
Arguments to IMPORT must either end with ".*" or else specify a fully qualified class name: "database.internal.utilities.charArrayDisp" fails this test.
MATLAB:mir_illegal_import_argument

Accepted Answer

Wave
Wave on 19 May 2020
Edited: Wave on 19 May 2020
Problem solved:
The file(s) of the text file:
C:\Users\XXX\AppData\Roaming\MathWorks\MATLAB\R2017b\javaclasspath.txt
Which is in my case:
C:\ProgramData\MATLAB\SupportPackages\R2017b\3P.instrset\mongodb.instrset\MongoDriver\mongo-java-driver-3.4.1.jar
Has / have to be added before compiling to the XXX.prj
AND for the special error above. The file:
C:\Program Files\MATLAB\R2017b\toolbox\database\database\+database\+internal\+utilities\charArrayDisp.m
has to be added as well to the XXX.prj

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!