필터 지우기
필터 지우기

Passing arguments to JVM from MCC

조회 수: 2 (최근 30일)
MKNote
MKNote 2015년 6월 24일
댓글: Matthew Granato 2016년 10월 7일
Hello,
I am trying to build my Matlab code into a Java JAR using mcc. I am using R2010b on Red Hat (RHEL5) and JDK 1.8.
I can build my code using JDK 1.7, but when I try to switch to Java 8 (which is a mandatory transition in my company), building fails at the Javadoc step, of all places. It complains of improperly placed "</p>" tags.
I have run the mcc command with -K to keep the intermediate outputs, then rerun Javadoc by itself with -Xdoclint:none and it completed successfully.
However, I haven't been able to figure out how to make mcc pass this argument automatically.
Is there a way to do so, or alternatively to skip Javadoc creation altogether?
Regards, Brian

답변 (1개)

Enkh
Enkh 2016년 9월 30일
It's not possible to pass in custom javac and javadoc commands through mcc, as of R2016b, so using the -K option to keep intermediate output and manually rerunning the java tools is the proper workaround.
We are aware of the javadoc lint tool issue with JDK 1.8, and this should be addressed when MATLAB supports Java 1.8 in the future.
  댓글 수: 1
Matthew Granato
Matthew Granato 2016년 10월 7일
I'm eagerly awaiting the 1.8 support as well. In the meantime, could you give a little more detail on the java tools to run? For instance, when running the "magic square" example, we get
mcc -K -W 'java:makesqr,Class1' -T link:lib -d C:\Users\%username%\Documents\MATLAB\makesqr\for_testing -v 'C:\Program Files\MATLAB\R2014a\toolbox\javabuilder\Examples\MagicSquareExample\MagicDemoComp\makesqr.m' 'class{Class1:C:\Program Files\MATLAB\R2014a\toolbox\javabuilder\Examples\MagicSquareExample\MagicDemoComp\makesqr.m}'
You can go to the logfile and get the command to re-run javadoc, but what should we run to get an installer in the "for_redistribution" folder?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Hardware Discovery and Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by