Skip to main content


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 12:21 Go to next message
Andr is currently offline AndrFriend
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 14:08 Go to previous messageGo to next message
Anton Leherbauer is currently offline Anton LeherbauerFriend
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 20:40 Go to previous messageGo to next message
Andr is currently offline AndrFriend
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 04:20 Go to previous messageGo to next message
Anthony  is currently offline Anthony Friend
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 14:30 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
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] Tue, 06 November 2012 04:17 Go to previous messageGo to next message
Vamshidhar Reddy boda is currently offline Vamshidhar Reddy bodaFriend
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 06:18 Go to previous messageGo to next message
shweta khstri is currently offline shweta khstriFriend
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 06:34 Go to previous messageGo to next message
shweta khstri is currently offline shweta khstriFriend
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 23:57 Go to previous messageGo to next message
Tiago Wanke Marques is currently offline Tiago Wanke MarquesFriend
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 23:12 Go to previous messageGo to next message
Sarah Ahmed is currently offline Sarah AhmedFriend
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 07:04 Go to previous messageGo to next message
Tehila m is currently offline Tehila mFriend
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 07:20 Go to previous messageGo to next message
Tehila m is currently offline Tehila mFriend
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 18:00 Go to previous messageGo to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 66
Registered: January 2013
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] Sun, 22 September 2013 03:29 Go to previous messageGo to next message
shiva pahade is currently offline shiva pahadeFriend
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
Re: Eclipse crashes with exit code 1 [message #1818472 is a reply to message #653614] Tue, 17 December 2019 02:12 Go to previous messageGo to next message
aakash kumar is currently offline aakash kumarFriend
Messages: 1
Registered: December 2019
Junior Member
it has worked for me (note:-adding at the bottom only)

--XX:-UseCompressedOops
Re: Eclipse crashes with exit code 1 [message #1851280 is a reply to message #1818472] Fri, 01 April 2022 10:50 Go to previous messageGo to next message
redlin liang is currently offline redlin liangFriend
Messages: 1
Registered: April 2022
Junior Member
I have tried all possible procedure above ,but none works.
As a comparision, I do the same building with the same eclipse and the same java on windows 10 , this error doesnot shows up anymore.

but for some reasons, we can not turn the server from windows 7 to windows 10, we do not know how to fix it.
Re: Eclipse crashes with exit code 1 [message #1851292 is a reply to message #1851280] Fri, 01 April 2022 14:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32491
Registered: July 2009
Senior Member
I'm a bit doubtful that your problem is the same as above. Best would be if you provide specific details. E.g., which version of Java are you using? In which absolute path is Java installed? What's in your eclipse.ini, i.e., do you specify a -vm option in that file? Did you try installing using the installer, which tests the JDK/JREs on your system to choose an appropriate/correct one and record it in the -vm option of the eclipse.ini...

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:software minimalism & xdebug port messup & firefox-style hotkeys?
Next Topic:eclipse - java
Goto Forum:
  


Current Time: Sun Sep 25 08:39:54 GMT 2022

Powered by FUDForum. Page generated in 0.04260 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top