Why do I receive errors when using the NetCDF Java package in MATLAB 7.2 (R2006a)?

5 次查看(过去 30 天)
I am attempting to use the NetCDF Java packages from within MATLAB and while doing so I receive the following error:
Loading units database: com/mathworks/uk/units/Unit.xml
Fatal error: Could not open null
java.io.IOException: Could not open null
at com.mathworks.toolbox.mbc.units.UnitXML.urlToInputSource(UnitXML.java:547)
at com.mathworks.toolbox.mbc.units.UnitXML.toXdoc(UnitXML.java:151)
at com.mathworks.toolbox.mbc.units.UnitXML.getFromXML(UnitXML.java:114)
at ucar.units.StandardUnitDB.addFromXML(StandardUnitDB.java:173)
at ucar.units.StandardUnitDB.<init>(StandardUnitDB.java:115)
...

采纳的回答

MathWorks Support Team
This issue is caused by and older version of the ucar.units package which is used by the Model-Based Calibration Toolbox.
To work around this issue you can remove mwucarunits.jar from your classpath as long as you do not use the Model-Based Calibration Toolbox which requires mwucarunits.jar. To do this, follow these steps:
1. Execute the following command at the MATLAB command prompt:
edit classpath.txt
2. Find the following line:
$matlabroot/java/jarext/mwucarunits.jar
and comment it out:
##$matlabroot/java/jarext/mwucarunits.jar
3. Save the file and restart MATLAB.

更多回答(0 个)

标签

尚未输入任何标签。

产品


版本

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by