Fatal Error On Startup - JVM won't start

7 Ansichten (letzte 30 Tage)
Ethan Gill
Ethan Gill am 28 Mär. 2012
Beantwortet: viorel dumbrava am 3 Jun. 2015
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

Akzeptierte Antwort

viorel dumbrava
viorel dumbrava am 3 Jun. 2015
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

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by