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
MathWorks Support Team 2009 年 6 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by