MCR using custom Java archives (jar)
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to use deploytool to deploy an application with custom built java jar archives. The issue is that we include a bunch of jar files, and some of the jar files contain classes which override other jar files depending on the classpath order. For deploytool, is there anyway to include the jar files in the "Shared Resources and Helper Files" area but allow the correct ordering of the includes? Should I even be including the jar files in this area? I have the javaclasspath set before i run the deploytool build command, but it doesnt seem to use this list to control load order. I am currently using Matlab R2010b on Linux.
댓글 수: 0
채택된 답변
Kaustubha Govind
2012년 8월 27일
I don't have personal experience with this, but according to this solution, you need to modify the javaclasspath in the compiled application using the JAVAADDPATH command.
댓글 수: 3
Friedrich
2012년 8월 28일
No,
while unpacking the CTF the jars are automatically put on the static classpath. So no manually adding needed. Simply run javaclasspath in the compiled application to check if they were added automatically.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!