lelewin
lelewin

Reputation: 559

How can I start my Eclipse?

I am using eclipse to develop an android application . But, now i can't open my eclipse. Error information is "jvm terminated. exit code = -1" . What should I do to open my eclipse?

Upvotes: 0

Views: 259

Answers (2)

lelewin
lelewin

Reputation: 559

Now I am OK by editing eclipse.ini . This is out of memory exception in eclipse.
Before editing, my eclipse.ini is

-showsplash  
org.eclipse.platform  
–launcher.XXMaxPermSize  
64M  
-framework  
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar  
-vmargs  
-Dosgi.requiredJavaVersion=1.5  
-Xms40m  
-Xmx512m  

Then I changed it like that

-showsplash  
org.eclipse.platform  
--launcher.XXMaxPermSize  
64M  
-framework  
plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar  
-vmargs  
-Dosgi.requiredJavaVersion=1.5  
-Xms40m  
-Xmx256m  

Eclipse default memory settings (at least for Eclipse 3.2) is to run with the following memory settings specified in its eclipse.ini file:

-vmargs
-Xms40m
-Xmx256m

Upvotes: 1

Try reinstalling the Java JDK 32 bit, and also 64 bit if you are running on a 64 bit system. If that doesn't work, try reinstalling Eclipse.

Upvotes: 0

Related Questions