Issue importing Java class to R17 paths but not R14

1 Ansicht (letzte 30 Tage)
Cortexlab
Cortexlab am 30 Nov. 2017
Kommentiert: Cortexlab am 20 Dez. 2017
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?

Akzeptierte Antwort

Yair Altman
Yair Altman am 3 Dez. 2017

Weitere Antworten (0)

Kategorien

Mehr zu Call Java from MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by