Eclipse's documentation
We recommend the following configuation options:
-
Window -> Preferences -> Java -> Compiler:
set "Compiler compliance level" to 6.0
-
Window -> Preferences -> General -> Editors -> Text Editors:
select "Show line numbers"
-
Window -> Preferences -> General -> Web Browser:
set "Use external Web browser" with /usr/bin/firefox
-
Window -> Preferences -> General -> Appearance -> Colors and Fonts:
To change the default font size, select Basic -> Text Font and then click "Change".
-
The default is that Eclipse automatically tries to build
projects whenever saved. For now, I prefer to work
without this option. It can be deselected as
Project -> Build Automatically.
After this point, the specific project can be built
manually using
Project -> Build Project.
-
EMACS users: You can activate most typical emacs
key binding (e.g., Ctrl+A for beginning of line) by going to
Window -> Preferences -> General -> Keys
and selecting "Emacs" from the pulldown menu for "Scheme".
To create a new project, select
File -> New -> Project and select "Java Project".
Give a project name (this may be different from the underlying
filename for the project). Then select from either creating a
new project in your default workspace or from creating a project
from an existing source. At this point go ahead and "Finish"
the setup.
To run a program, select Run -> Run at
which point you are asked for what kind of project this is.
Select "Java Application". Then you can identify the Main
class. Once you've set up the configuration for your project,
future runs can be done using the
Run -> Run Last Launched option.