13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

252Chapter 10Integrated <str<strong>on</strong>g>Development</str<strong>on</strong>g> Envir<strong>on</strong>mentsSDK c<strong>on</strong>tains the Eclipse Platform (which you need), the Java <str<strong>on</strong>g>Development</str<strong>on</strong>g>Toolkit (which you need), and the Eclipse Platform <str<strong>on</strong>g>Development</str<strong>on</strong>g> Kit (whichyou need <strong>on</strong>ly if you plan to develop plug-ins for Eclipse). But by downloadingthe Eclipse SDK package, you get everything you need in <strong>on</strong>e go. You couldalso download the Eclipse source package and build the whole thing yourself;save that for a spare week. For now, start with a prebuilt binary.If you scroll down, you will see a collecti<strong>on</strong> of files that have “platform”in their names. You will note that there are two choices of <strong>Linux</strong> binary: <strong>on</strong>eis Motif, the other GTK. If you are not familiar with these, Motif and GTKare two comm<strong>on</strong> extensi<strong>on</strong>s to the X Window API that provide widgets andother comm<strong>on</strong> functi<strong>on</strong>s and UI features. One of these, Motif, is rather oldand (to brashly add opini<strong>on</strong>) dated in appearance, but it is very stable and mature.The other, GTK, stands for GIMP Toolkit and was developed to supportthe remarkable GNU Image Manipulati<strong>on</strong> Program (GIMP). There are otherwidget/UI libraries that run <strong>on</strong> top of X Window, notably the Qt library usedby KDE.So, which to use? If you read the documentati<strong>on</strong> <strong>on</strong> the Eclipse Web site,you will see that the Motif versi<strong>on</strong> has been more heavily tested and is availablefor other platforms than <strong>Linux</strong>. This is probably because Motif is standard <strong>on</strong>most commercial UNIX versi<strong>on</strong>s, and thus is where emphasis was placed to getthe “most bang for the buck” in development and testing.However, we much prefer the look of the GTK versi<strong>on</strong> and, to date, havefound no major problems with it, so that is what we use for our examples.There should be no functi<strong>on</strong>al difference between the two—merely differencesin the look and feel of menus, toolbars, and dialogs. One reas<strong>on</strong> to select Motifmight be if you are working in a mixed envir<strong>on</strong>ment of <strong>Linux</strong> and other UNIXplatforms, where you may be forced to use the Motif versi<strong>on</strong> <strong>on</strong> some platforms,and do not want the “cognitive diss<strong>on</strong>ance” of switching betweenthe two. 6So, step <strong>on</strong>e: Download eclipse-SDK-2.1.2-linux-gtk.zip.The Eclipse platform is a “generic IDE.” You will see the term perspectiveall over Eclipse. A perspective is kind of a collecti<strong>on</strong> of tools in the IDE. Thepackage you just downloaded c<strong>on</strong>tains a generic perspective called Resource. A6. Please note that the differences are fewer and smaller than the differences involved inswitching between any comm<strong>on</strong> X Window desktop and Microsoft Windows. If you canhandle that (and many of us do every day), switching between Motif and GTK versi<strong>on</strong>s ofEclipse will be no problem for you.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!