Eclipse : Java Glossary

The CurrCon Java Applet displays prices on this web page converted with today’s exchange rates into your local international currency, e.g. Euros, US dollars, Canadian dollars, British Pounds, Indian Rupees… CurrCon requires an up-to-date browser and Java version 1.5 or later, preferably 1.7.0_02. If you can’t see the prices in your local currency, Troubleshoot
eclipse Eclipse
The current version is 7.0.1 Last revised/verified: 2011-12-14. A popular free IDE (Integrated Development Environment) for writing Java. It does refactoring. It was originally developed by IBM (International Business Machines). It is an enormous project encompassing more than just an IDE. Internally it uses SWT (Standard Widget Toolkit), IBM is a crack at tackling the same problem Swing does, but more streamlined. You have the option of using AWT (Advanced Windowing Toolkit), Swing or SWT in your own code. Eclipse is Jon Skeet’s favourite IDE. I used it for a while several years ago the moved to IntelliJ. It allows plug-ins for extra functionality. It uses its own compiler that lets it do incremental compiles and hot swapping of code during debugging. There are dozens of different versions of it, each targeting a different type of developer, including C++ and JavaScript.
Advantages Directory Structure
Disadvantages Tips
Eclipse Is A SCID Upgrading
Downloading Links
Plug-Ins

Advantages

Disadvantages

Eclipse Is A SCID (Source Code In Database)

Eclipse is an almost a SCID.

You may have no interest in how Eclipse works under the hood, but you had better understand at least as much as I am about to explain. Eclipse has its own copy of the source files. It also compiles them on the fly, as you type. This is how it can navigate so quickly, do global renames, refactor, find references and declarations instantly, compile instantly and undo changes, plugins etc. It does not use Javac.exe at all (except in an ant build). It tokenizes your source as you type, checks for errors and uses its own incremental/background compiler when you hit save.

Every time you click save at saves a conventional *.java copy of the class source on disk along with a corresponding compiled *.class file. However, if you modify one of those files, delete it, rename etc., sometimes nothing happens. It is as if Eclipse were oblivious to your changes. The true copy of your program is in RAM (Random Access Memory). Don’t touch Eclipse’s *.java files while Eclipse is running.

Instead of meddling with Eclipse’s *.java files, export, fix with your conventional tools and editors and the import the back again.

Import is the trickiest feature of Eclipse. Check after every import that your new source overrode the old and went into the correct place. You can drag and drop to the correct place if it missed. It is so easy to mess up and effectively lose all the work you did outside Eclipse. If you screw up, you can compare Eclipse files with your exported ones, correct your copy of the files with SlickEdit Diffzilla™, and reimport them. Again, there is no point in using Diffzilla to directly fix the Eclipse files. I suggest you experiment with a practice set of files till you are sure you get the hang of import, export and refresh. The full story is more complicated than I presented here. You can make changes to the source files if you know what you are doing.

Eclipse itself is written in Java, and you will notice a copy of javaw.exe running while it is. It is good example of just how polished a Java app can be. Show it to someone the next time they tell you there are no real apps in Java.

Downloading

Eclipse is a 103 MB download. You likely want the release candidate, not the latest build. Eclipse has no installer. You just unzip it to a directory of your choice then create a shortcut to eclipse.exe you can add to menus or the desktop. It uses IE to display its online help files. You might want to set up a bat file like this to launch eclipse.exe. Windows shortcuts are not bright enough to include command line parameters. You can tweak the parameters for maximal speed.

Plug-Ins

Much of the popularity comes from the way Eclipse is designed like a Lego set where can add or replace pieces of it. Some of the hundreds of plug-ins available are available from: Though Eclipse is free, the plug-ins are not necessarily free. For example BEA Workshop a plug-in to handle JSP, Struts, JSF and Hibernate is $900.00 USD .

Directory Structure

In eclipse terminology a project is a not a package, but a related group of packages.

If the project were called savetheworld, and my package were called com.mindprod.stopbush, then the *.java files it generates would live in E:\ecwork\savetheworld\com\mindprod\stopbush. They are thus fully accessible by ordinary text editors and other tools, but as I warned later, don’t modify them when Eclipse is running.

Tips

Upgrading to Eclipse 3.1.1 from 3.0.1

Click Help ⇒ Software Updates ⇒ Find and install ⇒ Search for new features

Then add a new remote site with label of Eclipse SDK (Software Development Kit) 3.1.1 Updates and an address of http://update.eclipse.org/updates/3.1

Then tick the new site, and select finished button.


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/eclipse.html J:\mindprod\jgloss\eclipse.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.211]
You are visitor number 43,884.