Issue importing Java class to R17 paths but not R14

2 visualizaciones (últimos 30 días)
Cortexlab
Cortexlab el 30 de Nov. de 2017
Comentada: Cortexlab el 20 de Dic. de 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?

Respuesta aceptada

Yair Altman
Yair Altman el 3 de Dic. de 2017

Más respuestas (0)

Categorías

Más información sobre Call Java from MATLAB 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