Fatal Error On Startup - JVM won't start
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ethan Gill
le 28 Mar 2012
Réponse apportée : viorel dumbrava
le 3 Juin 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
0 commentaires
Réponse acceptée
viorel dumbrava
le 3 Juin 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
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!