The MathWorks javabuilder.jar java library is missing. Make sure the javabuilder.jar file is added to the java class path when running your java class, as below:
java -classpath <mwroot>/toolbox/javabuilder/jar/javabuilder.jar:foo.jar foopackage.fooclass
where mwroot is either the MATLAB root directory (if running against MATLAB) or the MCR root directory (if running against the MCR).
If you have another java application that utilizes the compiled java class, make sure to also import it as below:
import com.mathworks.toolbox.javabuilder.*
Best Answer