Matlab JA Builder NullPointerException Failure to Run in Eclipse

Asked by Adwoa on 21 Aug 2012
Latest activity Edited by Adwoa on 21 Aug 2012

Hello-

I have built and installed MATLAB code encrypted into JavaPackages using Matlab's deploytool/JA Builder. However, I get the same error each time I try to run the functions encoded in the packages - even when implementing the example plotdemo [Example]

- - - -

import plotdemo.*

RUN CODE

- - - -

[*Error yielded*: (createplot.java:27 refers to plotter thePlot = new plotter();)]

_Exception in thread "main" java.lang.ExceptionInInitializerError

...

at plotdemo.PlotdemoMCRFactory.newInstance (PlotdemoMCRFactory.java:50)

at plotdemo.PlotdemoMCRFactory.newInstance(PlotdemoMCRFactory.java:61) at plotdemo.plotter.<init>(plotter.java:64)

at uploadDownload.createplot.main(createplot.java:27)

Caused by: java.lang.NullPointerException

at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir. get(MCRConfiguration.java:143) at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir. clinit(MCRConfiguration.java:173)

... 11 more_

0 Comments

Adwoa

0 Answers

Contact us