Hi Alex,
I understand that you getting errors when the plotting routines try to generate plots.
It seems that the issue you're facing is related to the fact that the MATLAB runtime is trying to use the MWJclipse libraries, which are not included in the Java package generated by the `compiler.build.JavaPackageOptions` and `compile.build.javaPackage` commands.
One of the possible workarounds is to add the 'MWJclipse' libraries to the Java package. You can do this by specifying the `-R` option when running the `javaPackage` command. The `-R` option tells the compiler to include all required runtime libraries in the package.
Here's an example of how you can modify your `build.m` file to include the MWJclipse libraries in the Java package:
% Build the Java package
javac -d build -sourcepath src -R -cp <matlabroot>/java/jar/* mypackage.java
In this example, the `-R` option tells the compiler to include all required runtime libraries in the package. The `-cp` option specifies the classpath for the MWJclipse libraries.
Alternatively, you can also specify the `-R` option when running the `javaPackage` command:
% Build the Java package
javaPackage -R -cp <matlabroot>/java/jar/* mypackage