Can I put a Jar file with Matlab Production Server?

2 ビュー (過去 30 日間)
xiaotaow
xiaotaow 2016 年 10 月 6 日
回答済み: Dimitris Iliou 2016 年 10 月 13 日
For MPS, can I have a jar file going with the production server, and have my scripts in ctf using the Java classes defined in that jar file?

回答 (1 件)

Dimitris Iliou
Dimitris Iliou 2016 年 10 月 13 日
If I understand correctly, you want to deploy 'JAR' file in MATLAB Production Server.
This can be done in two ways:
1) Add the 'JAR' files to the static classpath to do this:
  • place the JAR-file anywhere you want on the MPS machine
  • In the MCR installation used by MPS edit 'toolbox\local\classpath.txt' and specify the full location of the JAR-file
  • Restart your MPS instance
2) Add the JAR-file to the CTF-archive (use -a option or add to the "File required for your archive to run" in the App).
These should then automatically be added to the dynamic path when the CTF-archive is loaded on MPS.
Please find the documentation regarding how to create deployable archives, MATLAB Production Server, and how to use JAVA classes, for MATLAB R2015b, in the links provided below:

カテゴリ

Help Center および File ExchangeDeployable Archive Creation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by