Java Web Programming with Eclipse contents
Last modified January 14, 2011 02:54 am

back next

Eclipse Setup

Objectives

Video

Overview

Eclipse is a tool for building software projects. Such a tool is also referred to as an integrated development environment, or simply IDE.

Eclipse is similar to Microsoft Visual Studio, except that it is free and open source. IBM started eclipse as a proprietary, closed source project. However, after reaching a fairly advanced state of development, IBM converted eclipse into a free, community-supported open source project. The development of eclipse is now managed by the Eclipse Foundation, which is a non-profit organization.

Eclipse can be easily extended by any programmer. Eclipse comes with extensive documentation on how to do this. This is one of the reasons eclipse has gained in popularity. You can extend eclipse in one of two ways: by adding plug-ins, or by adding collections of plug-ins called features.

Eclipse is written in Java, and is primarily used as a tool to build Java projects. However, eclipse can be used to build projects in any language.

Installation

If Eclipse is not already installed on your system, go to the Eclipse website and download and install the Eclipse IDE for Java Developers. There is no installation program for Eclipse. Instead, unpack the compressed archive that you downloaded and unpack into a convenient location. You launch Eclipse by running the Eclipse executable file.

Issues

64-Bit Windows

Eclipse does not run (or does not run well) with a 64-bit JVM on Windows. If you are running 64-bit Windows, then install 32-bit Java and run Eclipse with it.

If eclipse is still not launching correctly for you, it may be that it is loading a 64-bit version of Java. You can tell eclipse which JVM to use by adding the -vm argument to eclipse.ini and have it point to 32-bit Java. The following is an example eclipse.ini file that corrects this problem.

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm "C:\Program Files (x86)\Java\jdk1.6.0_11\bin\javaw.exe"
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m   

Configure File Types

In subsequent activities, you will create files with extensions that eclipse does not by default understand. When you try to create or view these files, Eclipse will ask the operating system to run a program that is registered to handle these files types. What we want to happen is that eclipse opens the file using its text editor. To configure eclipse for this default behavior, perform the following steps and see the following screen shot of the preferences window.

Exercises

(1) Workbench Basic Tutorial

Go through the workbench basic tutorial that is built into the Eclipse help system. This will help you understand how to work in Eclipse. To locate the tutorial, select Help Contents within the Help menu, expand Workbench User Guide, expand Getting Started, and expand Basic Tutorial.

(2) Java Development Basic Tutorial

Go through the Java development basic tutorial that is built into the Eclipse help system. To locate the tutorial, select Help Contents within the Help menu, expand the Java Development User Guide, expand Getting Started, and expand Basic Tutorial.

back next

Copyright 2007-2009 David Turner and Jinseok Chae. All rights reserved.