<p>I recently started using Eclipse at work for my Java servlet projects.  I've been using jEdit for years, which is a uber-powerful text editor.  It has syntax highlighting, but it doesn't have any language-specific features like code completion and intelligent refactoring.  I'm finding that's hindering my productivity.  I <em>desperately</em> want to like Eclipse.  I really do.  But I keep running into problem after problem.  </p>

<ol>
<li>Now that Eclipse can use an ant script to build, instead of just creating its own build environment from an ant script then ignoring any changes to it, I found some online guides and set it up.  It doesn't seem ready for prime time, though.  My ant script builds fine from the command line, but I get all these build errors because I need to tell Eclipse all this stuff the build.xml already has in it, like the CLASSPATH, and where external jars are.</li>
<li>When I leave Eclipse running for too long, or sometimes after my laptop wakes up from hibernate, the UI starts breaking.  For instance, the tabs on the editor pane disappear, so I can only edit one file at a time, and it doesn't say which one it is.</li>
<li>We have faced several instances where classes weren't rebuilt that should have been, leading to inaccurate line numbers in debugging walkthroughs and other unpredictable behavior (this isn't just me; the two other developers trying it out with me are seeing the same thing).</li>
<li>I find it a huge hassle that the workspace is in a different place than my source code.  I have other files I need to edit (xml files, etc), and for each directory I want to edit files in, I need to set up a special entry, and it doesn't even default to where my source code is when setting that up.</li>
</ol>

<p>Do others face these same issues?</p>

<p>Are there better alternatives?  </p>

[{'answer_id': 80041, 'author': 'sblundy', 'author_id': 4893, 'author_profile': 'https://Stackoverflow.com/users/4893', 'pm_score': 3, 'selected': False, 'text': '<p>I love <a href="http://www.intellij.com" rel="nofollow noreferrer">IntelliJ</a>, but it\'s commercial. Eclipse feels like a buggy, half-hearted knockoff compared to it. To the point that IntelliJ\'s worth the cost.</p>\n'}, {'answer_id': 80046, 'author': 'jfs', 'author_id': 718, 'author_profile': 'https://Stackoverflow.com/users/718', 'pm_score': 4, 'selected': True, 'text': '<p>Try <a href="http://www.netbeans.org/" rel="noreferrer">NetBeans</a></p>\n\n<blockquote>\n  <p>A free, open-source Integrated\n  Development Environment for software\n  developers. You get all the tools you\n  need to create professional desktop,\n  enterprise, web, and mobile\n  applications with the Java language,\n  C/C++, and Ruby.</p>\n</blockquote>\n'}, {'answer_id': 80057, 'author': 'Thomas', 'author_id': 14637, 'author_profile': 'https://Stackoverflow.com/users/14637', 'pm_score': 0, 'selected': False, 'text': "<p>Partial, hopefully helpful answer to</p>\n\n<blockquote>\n  <p>4<code></code>. I find it a huge hassle that the workspace is in a different place than my source code. I have other files I need to edit (xml files, etc), and for each directory I want to edit files in, I need to set up a special entry, and it doesn't even default to where my source code is when setting that up.</p>\n</blockquote>\n\n<p>... you can configure the location of both your workspace and your source code, if you want.</p>\n"}, {'answer_id': 80063, 'author': 'kooshmoose', 'author_id': 7436, 'author_profile': 'https://Stackoverflow.com/users/7436', 'pm_score': 0, 'selected': False, 'text': "<p>Most of my time in Eclipse has been spent doing ColdFusion so I can't speak to ANT scripts or compilation. I too noticed that odd things would be more likely to happen if Eclipse was left running for an excessive amount of time. Aside from that, most other buggy-ness could be resolved by making sure that my JRE was the latest version.</p>\n"}, {'answer_id': 80282, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Eclipse can be quite a change, especially coming from something like just a text editor, or Visual Studio</p>\n\n<ol>\n<li><p>try to let Eclipse build the project itself, without the help of ant. Leave ant to a handwritten build.xml file to build the project from the command line outside of eclipse, e.g., on yer build/release machine.</p></li>\n<li><p>low on memory?</p></li>\n<li><p>are you going back and forth between building the project w/ant and then having Eclipse trying to build the project too? i.e., are the builds "fighting" with each other? see 1.</p></li>\n<li><p>yes, one of the things that you would need to get used to... accept, rather than fight, the "eclipse way"; you have to put your working source files somewhere, then why not in Eclipse\'s workspace folder?</p></li>\n</ol>\n\n<p>hope that helps/makes sense</p>\n'}, {'answer_id': 80549, 'author': 'Daniel Schneller', 'author_id': 1252368, 'author_profile': 'https://Stackoverflow.com/users/1252368', 'pm_score': 4, 'selected': False, 'text': '<p>Eclipse works best if you leave the project folder structure to its management. We are working with 15 developers on a project of several thousand classes and even more XML and .properties files.</p>\n\n<p>I agree there are problems with ANT integration, so for production and nightly builds I recommend an external build system based on ANT scripts started from a shell.</p>\n\n<p>However while working in Eclipse make sure you have the automatic build feature on (it should be by default, but checking does not hurt). This should free you from any concerns regarding what to build and when. Sometimes (very rarely for me) there are problems when I have to switch of the automatic build, clean all projects and trigger a manual build via the menu. From time to time I have to trigger the build multiple times (not the cleaning!), but once everything has been built again, turning the auto-build on works great again.</p>\n\n<p>As for long running instances: My machine keeps logged in basically all the time (day and night) and there are at least two Eclipse instances running at all times. I have not seen any problems with these sessions, even when they remain open for literally weeks.</p>\n\n<p>Most of the problems I have seen in the 5 years I have been using Eclipse originated from people installing too many plugins - the only stuff I have added is Checkstyle, the "implementors plugin" and some proprietary stuff for the application framework we are using.</p>\n\n<p>Maybe you can try using a rather clean Eclipse installation the "usual way" for a while (i. e. with the sources imported to the workspace folder).</p>\n\n<p>Regarding NetBeans: I use it from time to time as well, but I think it is a matter of taste and I like Eclipse better. This may be different for you.</p>\n'}, {'answer_id': 80607, 'author': 'Jeroen van Bergen', 'author_id': 15155, 'author_profile': 'https://Stackoverflow.com/users/15155', 'pm_score': 1, 'selected': False, 'text': "<p>Like some other people already have suggested: there are more good Java IDEs besides Eclipse. The strong point of Eclipse is the plug-in system. There's a wealth of functionality available and some of it is indeed very good. That said: I do not use Eclipse, but NetBeans at the moment. NetBeans feels less clunky, is more responsive and has a cleaner feel. </p>\n\n<p>When my main job was Java programming I've used IntelliJ a lot. IMHO IntelliJ beats both NetBeans and Eclipse as far as coding is concerned. It's faster, has better refactoring possibilities, better search, quick navigation and the list goes on.</p>\n\n<p>To a large extent, picking an IDE is a matter of taste, as well as experience. A lot of people feel more happy with the devil they know...</p>\n"}, {'answer_id': 82189, 'author': 'Nerdfest', 'author_id': 7855, 'author_profile': 'https://Stackoverflow.com/users/7855', 'pm_score': 0, 'selected': False, 'text': "<p>As someone else has mentioned, try NetBeans, It's similar to Eclipse in that it is a platform that supports an IDE, and is plug-in based. Its build system is also already based around Ant, allowing you to tap in at various extension points. In general, I've found it a bit more stable than Eclipse as well, but YMMV.</p>\n"}, {'answer_id': 82227, 'author': 'deterb', 'author_id': 15585, 'author_profile': 'https://Stackoverflow.com/users/15585', 'pm_score': 1, 'selected': False, 'text': "<p>For issue number 1, you can setup custom builders for eclipse.  To do so, right click on the Project and select Properties.  On the left there is a item called Builders, select that.</p>\n\n<p>Based off of what you are saying, you will want to remove the Java builder and replace it with a new Ant Builder.  This can be done by clicking New and selecting Ant Builder.  This will bring up a some configuration to fill out.</p>\n\n<p>In the configuration, the two most important parts are the Build File in the Main tab and the Targets tab.</p>\n\n<p>For issue 4, I would recommend having your project try to be independent of its location on disc.  That way everything is in the same tree.  Otherwise, the solution would be to setup external directories.  From what it sounds like, not everything is in the same 'source tree', which brings up source control issues.</p>\n"}, {'answer_id': 86405, 'author': 'Scott Stanchfield', 'author_id': 12541, 'author_profile': 'https://Stackoverflow.com/users/12541', 'pm_score': 0, 'selected': False, 'text': '<p>We have eclipse manage things the way it wants, and use ant4eclipse (a set of ant tasks) for continuous builds. Works great!</p>\n'}, {'answer_id': 1570139, 'author': 'Eelco', 'author_id': 445367, 'author_profile': 'https://Stackoverflow.com/users/445367', 'pm_score': 0, 'selected': False, 'text': "<p>Eclipse is a great tool. Hardly ever had problems with it in the many years that I've used it. It always amazes me how so many people can have problems with it. Then again, I'm using it as a fairly basic editor. I'm either lucky or my lack of problems stems from the fact that I'm not expecting it to be much more than a smart editor.</p>\n"}]
['https://Stackoverflow.com/questions/80021', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14924/']