Fatal Error On Startup - JVM won't start

13 views (last 30 days)
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

Accepted Answer

viorel dumbrava
viorel dumbrava on 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

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!