5

I am stuck with this error from last 3 hours.When I checked out latest code from SVN after that it suddenly stopped working.

Note:

My new project size is around 135 MB and I m using eclipse kepler.

Also there are 3 jars in myApp/res/libs named as sqlite.jar, ksoap2.jar, rt.jar

So I googled and found This Answer. And also Blog 1 and Blog 2 I have edited eclipse.ini

From:

-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.v20140116-2212
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

To

-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.v20140116-2212
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m 

But It is still not working and getting the same error in eclipse. Any help would be appreciated.

Community
  • 1
  • 1
TheFlash
  • 5,997
  • 4
  • 41
  • 46

2 Answers2

6

The solution to this is to remove rt.jar (there are 18635 class files) file from your project. It's a heavy jar. In JRE or J2EE/J2ME, that jar file used by default. In Android I'll not, so we have to add manually.

halfer
  • 19,824
  • 17
  • 99
  • 186
Er.Shreyansh Shah
  • 1,482
  • 1
  • 9
  • 29
  • U r right, but what is the possible solution? Any idea? – TheFlash Apr 21 '14 at 12:26
  • I am also facing same issue. Please explain some more clear please.. From where i have to remove rt.jar. And how to add manually. Need help... – Sun Aug 12 '14 at 10:25
  • If u have added rt.jar file than and than only u have to remove it from lib folder. – Er.Shreyansh Shah Aug 12 '14 at 11:39
  • @Ravi: You remove rt.jar from the JDK. In eclipse, you go to Window --> Preferences, Java --> Installed JREs, Select JDK, click edit. You should see rt.jar as the 2nd jar file. Select and remove. – jnrcorp Sep 24 '14 at 23:26
  • i got error java was started but return exitcode 1 any solution. – Ram Nov 06 '15 at 06:14
  • @Ram :- Can u please send full error or Screen Shot... or related link. So I can understand. – Er.Shreyansh Shah Nov 06 '15 at 13:08
  • @Er.ShreyanshShah I am having the same error. it is happing for only one project which has large no of classes. what am I suppose to do to remove this? I removed the file you mentioned, Still having the same error. – DKV Mar 05 '16 at 12:52
1

Increase the value of these parameters in Eclipse Configuration Setting file

-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

make them as-

-XX:MaxPermSize=1024m
-Xms512m
-Xmx1024m
Dev-iL
  • 23,742
  • 7
  • 57
  • 99
Trojan Horse
  • 203
  • 2
  • 6