MATLAB 7.14 (R2012a)にお​いて、「現在のフォル​ダー」の変更時に”j​ava.lang.O​utOfMemory​Error”が表示さ​れるのはなぜですか?

8 visualizaciones (últimos 30 días)
MATLAB 7.14 (R2012a)を起動し、フォルダ変更の際に以下のようなエラーがコマンドウインドウに表示されます。また、「現在のフォルダー」というウインドウの中にはファイルが表示されません。
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at com.mathworks.matlab.api.explorer.FileLocation.<init>(FileLocation.java:102)
at com.mathworks.matlab.api.explorer.FileLocation.getParent(FileLocation.java:137)
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.decodeLocation

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 25 de Oct. de 2013
下記手順で問題を回避します。
1) MATLAB R2012aを起動
2) MATLAB コマンドウインドウ上で、下記コマンドでエクスプローラを起動
>> winopen(prefdir)
3) MATLAB R2012aを終了
4) 開いたエクスプローラで表示されるパスの最後のフォルダの名前をリネーム
リネーム例:R2012a R2012a_old
5) 再度 MATLAB を起動します。 コマンドウインド上で下記コマンドを実行
restoredefaultpath
rehash toolboxcache
6)MATLAB デスクトップの [ファイル]-> [設定]メニューからダイアログを開き、
[一般]-> [Java ヒープメモリ]から適切なメモリ量を選択
スライダーバーで、Java ヒープメモリを増加させます。増加量は、半分ぐらいを目安に設定します。
7) 再度 MATLAB を起動し、フォルダ変更を確認
なお、”java.lang.OutOfMemoryError”の問題が発生した場合は、6)に戻り、Java ヒープメモリを増加させます。

Más respuestas (0)

Categorías

Más información sobre 環境と設定 en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2012a

Community Treasure Hunt

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

Start Hunting!