IM2JAVA2D is not available on this platform

조회 수: 3 (최근 30일)
Zhang
Zhang 2013년 12월 28일
편집: Yair Altman 2013년 12월 29일
Background: Ubuntu 12.04 Server. No GUI. MCR 2012. I'm running a matlab-based java program. The java I use is OpenJDK.
In details, the error is:
Error using im2java2d (line 80) IM2JAVA2D is not available on this platform.
Error in getBlockSegmentByFile (line 50)
Error in manualMain (line 151)
Exception in thread "main" ... Matlab M-code Stack Trace ...
file /root/.mcrCache7.17/autoBl1/toolbox/images/images/im2java2d.m, name im2java2d, line 80.
file /root/.mcrCache7.17/autoBl1/helper/getBlockSegmentByFile.m, name getBlockSegmentByFile, line 50.
file /root/.mcrCache7.17/autoBl1/autoBlockJav/manualMain.m, name manualMain, line 151.
com.mathworks.toolbox.javabuilder.MWException: Error using im2java2d (line 80)
IM2JAVA2D is not available on this platform.
at com.mathworks.toolbox.javabuilder.internal.MWMCR.mclFeval(Native Method)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.access$600(MWMCR.java:23)
at com.mathworks.toolbox.javabuilder.internal.MWMCR$6.mclFeval(MWMCR.java:833)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.mathworks.toolbox.javabuilder.internal.MWMCR$5.invoke(MWMCR.java:731)
at com.sun.proxy.$Proxy0.mclFeval(Unknown Source)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.invoke(MWMCR.java:406)
at autoBlockJava.manualMain.manualMain(manualMain.java:268)
at autoblock.AutoBlock.main(AutoBlock.java:37)

답변 (1개)

Yair Altman
Yair Altman 2013년 12월 29일
편집: Yair Altman 2013년 12월 29일
im2java2d is only available on platforms that run Java GUI (Swing); yours doesn't

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by