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(
at java.lang.Class.getDeclaredMethod(
at java.awt.Component.isCoalesceEventsOverriden(
at java.awt.Component.access$500(
at java.awt.Component$
at java.awt.Component$
at Method)
at java.awt.Component.checkCoalescing(
at java.awt.Component.<init>(
at java.awt.Container.<init>(
at java.awt.Panel.<init>(
at java.awt.Panel.<init>(
at java.applet.Applet.<init>(
at processing.core.PApplet.<init>(Unknown Source)
at nl.madebymark.Processing.HelloWorld.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at java.lang.Class.newInstance(
at nl.madebymark.Processing.Processing.reset(
at nl.madebymark.Processing.Processing.<init>(
Caused by: java.lang.ClassNotFoundException: com.cycling74.max.MaxObject
at com.mathworks.jmi.CustomURLClassLoader.findClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 24 more
For connection, I am using the MATLAB code in this folder: It would be great if someone tells me how can I fix the Error "Java exception occurred:"

Answers (0)

Community Treasure Hunt

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

Start Hunting!