MATLAB Answers


Issue importing Java class to R17 paths but not R14

Asked by Cortexlab on 30 Nov 2017
Latest activity Commented on by Cortexlab on 20 Dec 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?


Sign in to comment.

1 Answer

Answer by Yair Altman on 3 Dec 2017
 Accepted Answer

  1 Comment

Thanks, this was a very useful resource!

Sign in to comment.