Why does eclipse close by itself while running? - eclipse

It's been happening lately for some unknown reason.I have the latest version of Eclipse ADT (25 Sept 2014) and it just shuts off while I'm working. Any ideas?

Start Eclipse from a terminal to see the standard output. Chances are that the Java VM runs into a problem because of SWT which can crash the VM. Note: If you're using Windows, you may have to use java.exe instead of javaw.exe to get output.
Also look into the Error Log. Eclipse has a view for that or look into the file .../workspace/.metadata/.log The file might contain an error message.
If you find an error in either the console or the error log, let us know and we might be able to help.

The issue could also be because of the JVM that was chosen for the project.

Related

How can I debug why eclipse won't start?

I've been having trouble getting a weblogic server to run in eclipse, which have resulted in me not being able to open eclipse ni my current workspace at all. It is not my first attempt to work with weblogic servers in eclipse, and I do not know why it suddenly decided to stop working. I have had multiple errors, which all seem to be related to an abnormal high memory consumption.
One of my last errors, before eclipse quit on me for good, was an out of memory exception, on PermGenSpace. I set variables to 1024m, but it still complained it wasn't enough. After a lot of restarts, Eclipse suddenly wouldn't open my current workspace. I have tried others, and they work fine, but with my current one, the splash/loading screen disappears after about 10% of the loading bar is complete, and nothing happens at all. Except the fact that eclipse.exe shows up in the running processes tab on Windows task list. It does not show in the running programs list.
My attempts to start weblogic servers had the exact same symptoms. They showed in the process list, but did not respond when I tried to open the console in my browser.
Both eclipse and the weblogic tasks (shown as java.exe) has had over 400.000KB of memory consumption each, which I find very high.
I do not expect anyone to be able to find a complete solution here, but I am absolutely stuck. I cannot access any of my previous error messages. I have no experience debugging an error like this. Does anyone have any idea on how to find the error in a case like this?
My Weblogic version is 10.3.2, which is a company standard for now.
My Eclipse version is:
Eclipse Java EE IDE for Web Developers.
Version: Kepler Service Release 2
Build id: 20140224-0627
Adding the comment as an answer since it provided some help.
Try starting up to a new empty workspace; If you dont get to select workspace at startup use the argument "-data " If you still get issues, look at the log in /.metadata/.log

Error opening Eclipse

I am unable to open Eclipse IDE. The error displayed is as below
Any idea what could be the reason? And how do I solve this??
Note: I ran CCleaner recently (any registry issue??) and I got error executing my open Eclispe project. On restarting I get this issue. Is re-installation going to help? Am going to do that and update result here. And I would really like to know what caused this for future precautions.
Update: Same error for new installation. But this time got error regarding lauching JVM and missing dlls so going to reinstall Java.
Unable to understand what might be the exact problem , still giving it a shot.
Did you go through this URL http://michaelzanussi.com/?p=468
Appears to be the same issue , resetting JAVA_HOME and PATH solved the issue for him
The authors of Eclipse strongly recommend manually updating the Eclipse.ini file to point directly to the JRE that you want to use rather than relying on Windows environment variables.
Also C:\Windows\System32 is a really strange place to find the Java Runtime Environment files, typically they wind up in C:\Program Files\Java or C:\Program Files (x86)\Java.

Eclipse for php on Mac OSX 10.5: "Animation Start" error

I am having a terrible time getting Eclipse with php/pdt installed on my older 2006 MacBook running 10.5.8.
I have MAMP installed and running php 5.3.5. That works fine. The zend debugger information shows up correctly in phpinfo() and I have dummy.php in the correct location. 127.0.0.1 is allowed in the config file.
I have eclipse itself installed. I also have tried "Eclipse for php Developers" v3.0.2.
Both installations return errors when I try and run or debug a script. I am trying to use Zend Debugger.
The error is:
"Animation Start has encountered a problem". An Internal error has occurred.
An internal error has occurred.
java.lang.NullPointerException
I have the php executable set as
/Applications/MAMP/bin/php5.3/bin/php (CLI)
Suggestions?
The problem with the "Animation Start has encountered a problem" error dialog doesn't have to do with the php scripts but rather is just an UI quirk/error that is irritating and is likely because of a mis-configured dock:icon property on the eclipse.ini (or whatever eclipse product the zend product uses).
Find the root executable that launches eclipse-based product.
Open up the application executable (.app) package contents
Go to the Contents/MacOS/ folder
Edit the ini file
Make sure that you have this line correctly specificed:
-Xdock:icon=../Resources/<NameofIconFile>.icns
Then restart eclipse/zend
Now you should be able to invoke scripts and not see that invalid error dialog.
You can uncheck "launch in background" in the "common" tab of debug/run configuration.
Ok, I wanted to simply comment on my "success", following gamerson's answer with a slight adaptation... But it seems like I don't have enough "rep" to do that yet, so here goes ;-)
I had this annoying issue for a little while, and also had a second copy of eclipse for java installed on my macbook. It seems like my eclipse pdt did not contain any .icns files (I did a full recursive search of the dir with "find ."... So I thought, I'll copy it from that other eclipse app I have. And I made sure the ini config file (mentioned by gamerson) had the correct path. And voila! No more of that annoying error popup in eclipse, and also the dock where I had a link to the app now has a nice icon (which before was some ugly "generic" icon with pencils and paper, that all makes sense now). Only downside is that I now have two similar dock icons (the PDT one and the Java one lol) but that is a totally minor annoyance. I guess I could "hack" my dock and give it a funky icon while at it ;-)
Thanks internets!

What could cause EasyEclipse to terminate with error window?

When I start EasyEclipse, I get error:
JVM terminated. Exit code=127
Do you have any idea as to the possible cause for this kind of error message?
If this happen right from the start, it may be related to your eclipse.ini content.
See this one (for Eclipse 3.6 Helios),
and check the end of each lines of your eclipse.ini: there should be no extra space.
After that, it depends on:
the exact Eclipse version
the exact JVM used to launch said Eclipse
your platform (OS)
See for instance bug 174642.

Hot Code Replace Failed (eclipse)

"Hot Code Replace Failed - add method not implemented".
I get this error message every time I change something in my test class (and save it).
Can't figure out what it means. Can somebody help?
Possibly, you have a test which is still running (in debug mode). Try finishing all tests (you can see them in the debug view: window->show view->debug) and try again...
See this thread:
This means you changed a class while it was debugging an application and it could not update the class for the application while it was running.
The error suggests you may be running an older JVM, i.e. pre-1.4.2 but this error can occur with any JVM if the change is incompatible with the previous version of the class.
Check carefully what JRE you are using in your debug session.
Also check you are deploying classes compiled with the debug attribute set. (see this thread)
Finally, as indicated here:
did you switch "Project->Build Automatically" off?
Hot code replacement works (only?) if automatic build is switched on...
I was running into this issues too. I found a build hiding in the backgound that was giving me fits. Check to make sure you have all tests/builds closed or completed. Nonetheless, you can still run the new code.
Whenever this error message appears it also gives options to terminate or restart. Select Terminate and it will terminate any running debug case which you are unable to locate.
if you have multiple projects involved, and multiple jre's installed, make sure all dependent projects are using the same javac/jre
Make sure your application server JRE and Eclipse JRE version should be same or else it will throw unsupported class version and hot code debug will not work.
I went to the same Problem,But my Debugging session ended hours ago.But still ECLIPSE error kept coming.
So I just simply restart the ECLIPSE IDE, then the problem just solved.