MCR using custom Java archives (jar)

3 visualizaciones (últimos 30 días)
Jordan
Jordan el 27 de Ag. de 2012
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.

Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 27 de Ag. de 2012
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 comentarios
Friedrich
Friedrich el 28 de Ag. de 2012
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.
Jordan
Jordan el 28 de Ag. de 2012
The jar files from the CTF are added to the dynamic classpath. But they are still in alphabetical order, not in the specific order needed to override classes in different jar files. To be able to define the ordering of the jars, I need to call javaclasspath to set the files to load in the proper order.
I see the jar files extracted from the CTF are put in the ctfroot/<ProjectName> folder. Is this correct? If i hard code the project name for the javaclasspath, I need to maintain the project name every time I make a build.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by