Issue importing Java class to R17 paths but not R14

1 view (last 30 days)
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?

Accepted Answer

Yair Altman
Yair Altman on 3 Dec 2017

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!