Issue importing Java class to R17 paths but not R14

조회 수: 3 (최근 30일)
Cortexlab
Cortexlab 2017년 11월 30일
댓글: Cortexlab 2017년 12월 20일
Hello all,
I have a Java class file called 'VisualRenderer', compiled using the major version 51, minor version 0. I have two MATLAB releases on my computer: 2014a using Java 1.7.0_11-b21 and 2017a using Java 1.7.0_60-b19.
When I run the following line in 2017a I get an error, whereas in 2014a it works fine. The paths are correct in both MATLAB versions and the Java versions (to my knowledge) are compatible with the class file.
>> javaaddpath(jcp);
>> c = javaObjectEDT('VisualRenderer', vertexsrc, fragsrc);
Error using javaObjectEDT
No class VisualRenderer can be located on the Java class path
This class file can be successfully imported in 2014a but not 2017a. My question is how can I find out precisely why the file cannot be imported with the more recent version of Java/MATLAB?

채택된 답변

Yair Altman
Yair Altman 2017년 12월 3일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by