Java heap Space error in Eclipse again and again - java

I am getting Java Heap Space error in Eclipse again and again so I change config of Eclipse. But still no effect. I am not able to work properly because of it. Please help me to solve this issue.
Config:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSi512M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersionXms512m
-=1.7-Xmx1024m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=1024M

Turn off Lint and problem solved. You can do it by Window -> Preferences -> Android -> Lint Error Checking -> then untick checkboxes at top of page

Related

How to speed up reading files of a project in eclipse

I have a liferay 6.2 project with thousand files in source folder
I use eclipse IDE to develop and it has a annoyed issue: each time I click a folder in eclipse, it take long time to open the folder to see files and subfolders
I have config the eclipse.ini of eclipse to tuning eclipse performance but it does not have any effect.
Please me the suggestion to speedup eclipse
Bellow is the content of eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
2048M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
4096m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms2048m
-Xmx4096m
-Xverify:none

Eclipse indigo not working properly

i am working with eclipse indigo , but it gives me strange behavior .
when i start eclipse indigo by double clicking on eclipse.exe it is not working ,it is showing (Not Responding) message continuously.
but if i start it from the command prompt than it is working fine .
i don't know what is the reason behind that.
i am attaching screen shot
1) eclipse which is not responding
2) command prompt from where it is working fine
Command Prompt
Eclipse Not Responding
following is the my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms80m
-Xmx1024m

Error starting eclipse exit code=13

I have already searched for this but i cant find something that answer this (tried some but i dont understand how to proceed or it just dont works)
So here am I, when I launch eclipse it just doesn't start and I got this message:
If I understood well, the eclipse.ini file has something to do with the problem. Here it is:
Sorry for my language, I am not native english so, I tried to explain as best as I could.
You have a 32bit OS and you are trying to use a 64bit eclipse and/or 64bit JDK
Before to do this i suggest to verify the type of your OS(32 or 64 bit).
-I also advise you to check the version of java and eclipse IDE that you have downloaded and installed
After this try to erase the string from your ENV path of WINDOWS from System->Advanced settings->enviroment path
and erase the string C:\ProgramData\Oracle\Java\bin;
if it doesn't work yet try to modify your eclipse.ini like this:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
**-vm
C:\Program Files\Java\jre1.8.0_31\bin\javaw.exe**
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Xmx512m
you must put the string before vmargs and put the correct release of java.
Also you have to put -vm and a new line the path

Java crashes with Java was started but returned exit code=1

I use eclipse for android development.
Sometimes, if Google Chrome is running, it crashes and Eclipse also.
And I get message Java was started but returned exit code=1.
Full message is in print screen.
and my eclipse.ini :
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vm
C:/Program Files/Java/jdk1.7.0_51/jre/bin/server/jvm.dll
-vmargs
-Xms1024m
-Xmx1024m
-XX:MaxPermSize=512m
If your JDK version is 32bit then download Eclipse or STS of 32 bit.
If your JDK version is 64bit then download Eclipse or STS of 64 bit.This worked for me

"Could not create the JVM" error at Eclipse startup

I've got error like this:
My eclipse.ini:
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize 256M
-showsplash com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
--launcher.defaultAction openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
-vm C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe
how to fix this problem?
you can start eclipse this way instead:
eclipse -vm <path to java>
In the eclipse.ini file change the following
--launcher.XXMaxPermSize
900m
from
--launcher.XXMaxPermSize
512m
Also check out this link and mostly this error comes due to the hardware issues like the RAM.
same thing happened with me when i updated my jre7 , what worked for me was updating the new path in windows environment variables,
add a new system variable :
Variable Name: PATH
Variable value: C:\Program Files\Java\jdk1.7.0_51\bin
hope this helps..:)

Categories

Resources