Fatal Error On Startup - JVM won't start

7 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by