How to run processing file from MATLAB?

1 view (last 30 days)
Mahmood Sabooni
Mahmood Sabooni on 23 Jan 2018
Hello everyone, I have a processing file which can control a hardware and also collect some data and works well. Now I want to integrate it in MATLAB. But when I am trying to call processing, I see an error like this: Error using example (line 10) Java exception occurred: java.lang.NoClassDefFoundError: com/cycling74/max/MaxObject
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethod(Class.java:2128)
at java.awt.Component.isCoalesceEventsOverriden(Component.java:6218)
at java.awt.Component.access$500(Component.java:186)
at java.awt.Component$3.run(Component.java:6172)
at java.awt.Component$3.run(Component.java:6170)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Component.checkCoalescing(Component.java:6169)
at java.awt.Component.<init>(Component.java:6138)
at java.awt.Container.<init>(Container.java:283)
at java.awt.Panel.<init>(Panel.java:64)
at java.awt.Panel.<init>(Panel.java:56)
at java.applet.Applet.<init>(Applet.java:65)
at processing.core.PApplet.<init>(Unknown Source)
at nl.madebymark.Processing.HelloWorld.<init>(HelloWorld.java:7)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at nl.madebymark.Processing.Processing.reset(Processing.java:200)
at nl.madebymark.Processing.Processing.<init>(Processing.java:146)
at nl.madebymark.Processing.Processing.run(Processing.java:107)
Caused by: java.lang.ClassNotFoundException: com.cycling74.max.MaxObject
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at com.mathworks.jmi.CustomURLClassLoader.findClass(ClassLoaderManager.java:760)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 24 more
For connection, I am using the MATLAB code in this folder: https://www.mathworks.com/matlabcentral/fileexchange/31817-run-processing-sketches-in-matlab It would be great if someone tells me how can I fix the Error "Java exception occurred:"
Best,

Answers (0)

Categories

Find more on Parallel Computing Fundamentals in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!