Fatal Error On Startup - JVM won't start

8 ビュー (過去 30 日間)
Ethan Gill
Ethan Gill 2012 年 3 月 28 日
回答済み: viorel dumbrava 2015 年 6 月 3 日
Hi,
I am running the student version of R2011a and I recently changed a setting in Preferences->General->Java Heap Memory. In this menu I changed the amount of memory that Java can use from 128 megabytes to 4 gigabytes (my computer has 16 gigs of memory so 4 gigs shouldn't be a problem). Since making this change I am getting a Fatal Error On Startup message that says "Unable to start the JVM because of an invalid Java option" whenever I start Matlab.
I am able to start Matlab from the command line without running the JVM but I haven't been able to change settings when running Matlab like that.
I have been unable to find my Matlab install disk to reinstall Matlab otherwise I would have just done that.
Is there anyway to change a configuration file to revert this change? Or does anyone know another solution to my problem?
Thanks in advance,
Ethan

採用された回答

viorel dumbrava
viorel dumbrava 2015 年 6 月 3 日
Late late answer, but maybe will help others :). In Windows 7 go to C:\Users\user_name\AppData\Roaming\MathWorks\MATLAB\R2010b\matlab.prf Search for JavaMemHeapMax and change its value to something smaller. In my case looks like this: JavaMemHeapMax=I1024

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by