epubjs
Version:
Render ePub documents in the browser, across many devices
34 lines (33 loc) • 3.97 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Getting Started with Eclipse</title><link rel="stylesheet" href="core.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"/></head><body><div class="sect1" title="Getting Started with Eclipse"><div class="titlepage"><div><div><h1 class="title"><a id="learnjava3-APP-A-SECT-2"/>Getting Started with Eclipse</h1></div></div></div><p><a id="idx11241" class="indexterm"/>Let’s get started. First, you’ll need to install Eclipse.
Download the latest version of <a class="ulink" href="http://eclipse.org/">“Eclipse
IDE for Java Developers”</a>. Choose the correct version for your
platform. Unpack the ZIP file to a location of your choice and then launch
the application.</p><p>The first time you run Eclipse, you’ll be prompted to select a
workspace. This is a root directory to hold new projects that you create
within Eclipse. The default location may be inside the application’s
install folder itself, which is probably not what you want. Pick a
location and click OK.</p><p>Eclipse greets you with the Welcome screen. Close this window by
closing the Welcome tab within the application. If you want to come back
later and go through the Eclipse tutorials and related help topics, you
can get this window back by choosing Help <span class="unicode">→</span> Welcome.</p><p>One last thing before we move on: Eclipse stores all of its
configuration information in the <span class="emphasis"><em>configuration</em></span> folder
inside the Eclipse installation directory. If, at any point in this
introduction, you feel that things are not right and you want to start
from scratch, you can quit the application and remove this folder. You may
also wish to remove your workspace items as they hold per-project state.
Less drastically, if you wish to reset all of the application windows to
their default locations, you can choose Window <span class="unicode">→</span> Reset Perspective. We’ll talk more about
perspectives later.</p><div class="sect2" title="Importing the Learning Java Examples"><div class="titlepage"><div><div><h2 class="title"><a id="learnjava3-APP-A-SECT-2.1"/>Importing the Learning Java Examples</h2></div></div></div><p>Before we talk about the IDE itself, let’s load the examples from
this book. You can find a ZIP file containing all of the
examples from this book nicely packaged as an
Eclipse project at <a class="ulink" href="http://oreil.ly/Java_4E">http://oreil.ly/Java_4E</a>. The Eclipse version of the
examples is called <em class="filename">examples-eclipse.zip</em>.</p><p>Open the Import Wizard with File <span class="unicode">→</span>
Import and select General <span class="unicode">→</span> Existing
Projects Into Workspace as the source and click Next. Choose Select
Archive File. Click the Browse button and locate the <em class="filename">examples-eclipse.zip</em> file. The Import wizard
should look like <a class="xref" href="apas02.html#learnjava3-APP-A-FIG-1" title="Figure A-1. The import projects dialog box">Figure A-1</a>. Click
Finish.</p><p>Eclipse will now import all of the files from the archive and
immediately begin building the source in the background (a small
progress bar at the bottom of the screen will show this).<a id="I_indexterm_id837840" class="indexterm"/></p><div class="figure"><a id="learnjava3-APP-A-FIG-1"/><div class="figure-contents"><div class="mediaobject"><a id="I__tt1359"/><img src="httpatomoreillycomsourceoreillyimages1707718.png" alt="The import projects dialog box"/></div></div><p class="title">Figure A-1. The import projects dialog box</p></div></div></div></body></html>