Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse crashes with exit code 1
icon5.gif  Eclipse crashes with exit code 1 [message #653614] Thu, 10 February 2011 07:21 Go to next message
Andr is currently offline Andr
Messages: 2
Registered: February 2011
Junior Member
I know this is a known problem and I have been looking in a lot of other forums for a way to fix this problem but never found one that works for me. So I thought I should as here but I'm not sure if it's the right place.

As mentioned in the title Eclipse crashes and does it a lot. It gives no warning, just shuts down and gives the following message:

Java was started but returned exit code=1
c:\windows\system32\javaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\eclipse\plugins/org.eclipse.equinox.launcher_1.10.v201005 07.jar
-os win32
-ws win32
-arch x86_64
-showsplash
-launcher c:\eclipse\eclipse.exe
-name Eclipse
--launcher.library
c:\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32. x86_64_1.1.1.R36x_v20100810\eclipse_1309.dll
-startup c:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100 507.jar
-exitdata bf0_5c
-vm c:\program files\java\jdk1.6.0_23\bin\javaw.exe
-vm c:\windows\system32\javaw.exe
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar c:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100 507.jar


I am using Windows 7 64 bit, Java 1.6 Update 23 for windows 64 bit, and eclipse helios 3.6.1 for windows 64 bit.

This is my eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1. 1.R36x_v20100810
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm c:\program files\java\jdk1.6.0_23\bin\javaw.exe
-vmargs
-Xms40m
-Xmx512m


I have tried to add the: -vm c:\program files\java\jdk1.6.0_23\bin\javaw.exe
line which I read about in some forum. I have tried to re-import the workspace which I read could be a problem too.

Does anyone have any ideas of what I can do to solve this or at least point me in the right direction?

I appreciate any answer!

// André
Re: Eclipse crashes with exit code 1 [message #653641 is a reply to message #653614] Thu, 10 February 2011 09:08 Go to previous messageGo to next message
Anton Leherbauer is currently offline Anton Leherbauer
Messages: 490
Registered: July 2009
Senior Member
Sounds like https://bugs.eclipse.org/bugs/show_bug.cgi?id=333227

HTH,
Toni

On 2/10/2011 1:21 PM, Andr wrote:
> I know this is a known problem and I have been looking in a lot of other
> forums for a way to fix this problem but never found one that works for
> me. So I thought I should as here but I'm not sure if it's the right place.
> As mentioned in the title Eclipse crashes and does it a lot. It gives no
> warning, just shuts down and gives the following message:
>
> Java was started but returned exit code=1
> c:\windows\system32\javaw.exe
> -Xms40m
> -Xmx512m
> -XX:MaxPermSize=256m
> -jar C:\eclipse\plugins/org.eclipse.equinox.launcher_1.10.v201005 07.jar
> -os win32
> -ws win32
> -arch x86_64
> -showsplash
> -launcher c:\eclipse\eclipse.exe
> -name Eclipse
> --launcher.library
> c:\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.
> x86_64_1.1.1.R36x_v20100810\eclipse_1309.dll
> -startup c:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100
> 507.jar
> -exitdata bf0_5c
> -vm c:\program files\java\jdk1.6.0_23\bin\javaw.exe
> -vm c:\windows\system32\javaw.exe
> -vmargs
> -Xms40m
> -Xmx512m
> -XX:MaxPermSize=256m
> -jar c:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100 507.jar
>
> I am using Windows 7 64 bit, Java 1.6 Update 23 for windows 64 bit, and
> eclipse helios 3.6.1 for windows 64 bit.
>
> This is my eclipse.ini file:
> -startup
> plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.
> 1.R36x_v20100810
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vm c:\program files\java\jdk1.6.0_23\bin\javaw.exe -vmargs
> -Xms40m
> -Xmx512m
>
> I have tried to add the: -vm c:\program
> files\java\jdk1.6.0_23\bin\javaw.exe line which I read about in some
> forum. I have tried to re-import the workspace which I read could be a
> problem too.
> Does anyone have any ideas of what I can do to solve this or at least
> point me in the right direction?
>
> I appreciate any answer!
>
> // André
Re: Eclipse crashes with exit code 1 [message #653912 is a reply to message #653641] Fri, 11 February 2011 15:40 Go to previous messageGo to next message
Andr is currently offline Andr
Messages: 2
Registered: February 2011
Junior Member
That fixed it!

I added the line:
-XX:-UseCompressedOops

to eclipse.ini and so far so good! 24h without crashing. A new record!
icon14.gif  Re: Eclipse crashes with exit code 1 [message #665546 is a reply to message #653912] Fri, 15 April 2011 00:20 Go to previous messageGo to next message
Anthony  is currently offline Anthony
Messages: 2
Registered: April 2011
Junior Member
Adding '-XX:-UseCompressedOops' to the eclipse.ini worked!
Thank you all.
This has been driving me crazy for days!
Re: Eclipse crashes with exit code 1 [message #665823 is a reply to message #653614] Sat, 16 April 2011 10:30 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 1
Registered: April 2011
Junior Member
This helped me too. I am a newbie setting up eclipse and C++ so it took me a couple of iterations as I was not sure where in the ini file I needed to add it and found it worked if it was the last line I had to add the command -XX:-UseCompressedOops
at the end of the eclipse.ini file:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_14 00.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1. 2.R36x_v20101222
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
openFile
-vm
C:\Program Files\Java\jdk1.6.0_24\bin\javaw.exe
--launcher.defaultAction
-vmargs
-Xms40m
-Xmx192m
-XX:-UseCompressedOops

Re: Eclipse crashes with exit code 1 [message #973086 is a reply to message #653614] Mon, 05 November 2012 23:17 Go to previous messageGo to next message
Vamshidhar Reddy boda is currently offline Vamshidhar Reddy boda
Messages: 2
Registered: December 2011
Location: MTV,CA
Junior Member
On windows 7, use '-XX:+UseCompressedOops' instead '-XX:-UseCompressedOops'.
Re: Eclipse crashes with exit code 1 [message #999004 is a reply to message #973086] Fri, 11 January 2013 01:18 Go to previous messageGo to next message
shweta khstri is currently offline shweta khstri
Messages: 2
Registered: January 2013
Junior Member
I have tried above mentioned procedures, but I am still getting the same error.
Please do help
Re: Eclipse crashes with exit code 1 [message #999011 is a reply to message #653614] Fri, 11 January 2013 01:34 Go to previous messageGo to next message
shweta khstri is currently offline shweta khstri
Messages: 2
Registered: January 2013
Junior Member
Problem solved..:)Smile
Thank u..
Re: Eclipse crashes with exit code 1 [message #1001059 is a reply to message #999011] Tue, 15 January 2013 18:57 Go to previous messageGo to next message
Tiago Wanke Marques is currently offline Tiago Wanke Marques
Messages: 1
Registered: January 2013
Junior Member
How do u solve?
Re: Eclipse crashes with exit code 1 [message #1050249 is a reply to message #653614] Fri, 26 April 2013 19:12 Go to previous messageGo to next message
Sarah Ahmed is currently offline Sarah Ahmed
Messages: 1
Registered: April 2013
Junior Member
If you are running Windows 7 and the error is still occurring, try running the application as administrator.
Re: Eclipse crashes with exit code 1 [message #1060577 is a reply to message #665546] Mon, 27 May 2013 03:04 Go to previous messageGo to next message
Tehila m is currently offline Tehila m
Messages: 2
Registered: May 2013
Junior Member
I have this problem too.
Where sould I write this line?
(What is eclipse.ini?)

Thanks!
Re: Eclipse crashes with exit code 1 [message #1060579 is a reply to message #1050249] Mon, 27 May 2013 03:20 Go to previous messageGo to next message
Tehila m is currently offline Tehila m
Messages: 2
Registered: May 2013
Junior Member
I try both,
But it still crashed with same error.
What can I do?
Re: Eclipse crashes with exit code 1 [message #1079503 is a reply to message #653614] Sun, 04 August 2013 14:00 Go to previous messageGo to next message
Anton Hughes is currently offline Anton Hughes
Messages: 25
Registered: January 2013
Junior Member
Im running Win 7, 64bit

Ive tried the following:



    Adding -Xint to the ini file
    Adding --XX:-UseCompressedOops to the ini file
    Adding -XX:+UseCompressedOops to the ini file
    Running as Administrator


Nothing has worked.

Anyone have any other suggestions?
Re: Eclipse crashes with exit code 1 [message #1114010 is a reply to message #1079503] Sat, 21 September 2013 23:29 Go to previous message
shiva pahade is currently offline shiva pahade
Messages: 1
Registered: September 2013
Junior Member
Try with java.exe instead of javaw.exe, worked for me

---vm
---<yourjavainstallation>/bin/javaw.exe
-vm "<yourjavainstallation>\bin\java.exe" -consoleLog -debug
Previous Topic:How to Delete a Workspace
Next Topic:The eclipse executable launcher
Goto Forum:
  


Current Time: Sun Aug 31 00:44:14 EDT 2014

Powered by FUDForum. Page generated in 0.01961 seconds