フィルターのクリア

Matlab Compiler import Jar error

2 ビュー (過去 30 日間)
FB
FB 2018 年 6 月 12 日
回答済み: FB 2018 年 6 月 18 日
I use Matlab 2016b 64Bit on Windows 7 with Matlab Compiler.
When i run my application directly in Matlab (on Windows) it all works fine. But when i try to run the compiled version (on another Windows machine) the import of third party Java classes fail. The error message is: "Error file: C:\......\myscript. Line: 59 Column: 8 Arguments to IMPORT must either end with ".*" or else specify a fully qualified class name: "a.b.c.ClassName" fails this test."
In my script i import the jar as: import a.b.c.ClassName
I also tried to change the import to "import a.b.c.*" but then i get an error when i try to use the classes i imported. I added a debug output to my compiled version to confirm that the Jars are on the classpath.

採用された回答

FB
FB 2018 年 6 月 18 日
The JARs are depending on DLLs. I didn't have the path to them on the PATH variable on the target platform. After adding it, the application can import the JAR files correctly.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by