Tuesday, January 14, 2020

The Eclipse IDE

The Eclipse IDE

In an IDE, programs can be created, compiled, run and integrated into a single package. The GUI (Graphical user interface) provided by these IDEs are familiar to the programmers. There are several er of different IDEs for Java application development is available. These can be fairly simple wrappers around the JDK to highly complex applications with tons of features. For a novice developer, these can be a little difficult to understand and use, but few of them are extremely simple to use and learn. Eclipse IDE is one of them. Once you a little experience of Java programming and know basic constructs and syntax of Java, then you can easily use Eclipse IDE. Until we are using Oracle's JDK, it will not require any extra configuration.

we can download an Eclipse IDE from eclipse.org. To install Eclipse, download the "Eclipse IDE for Java Developers" package from this web page:

Eclipse is well known and popular for its several IDEs. It contains a base workspace and an extensible plug-in system for customizing the environment. For Windows and Linux, the download is a compressed archive file. Extract the archive contents and put the resulting directory wherever you want to keep them in your machine. The eclipse application icon will be available in that directory (folder), Eclipse can be started by simply double-clicking the application icon. For Mac OS, we can download .dmg file which contains the Eclipse application. Open the .dmg file and drag the application to any location and run the application.

Eclipse is free to use, open-source and mostly written in Java and plugin architecture allows Eclipse to be extended in other languages. Eclipse Integrated development environment requires a JDK for Java 8 or later. Before running the Eclipse application, first, install the JDK.

On Starting Eclipse Application first time, it will ask to specify a workspace, which is the directory where all projects created will be stored. Accept the default name, or provide some customized name to your workplace. We can create multiple workspaces and use any workspace. When a new workspace is first opened, the Eclipse window will be filled by a large "Welcome" screen that includes links to extensive documentation and tutorials. You should close this screen, by clicking the "X" next to the word "Welcome"; you can get back to it later by choosing "Welcome" from the "Help" menu.

The Eclipse GUI consists of one large window that is divided into several sections. Each section contains one or more views. For example, a view can be a text editor, it can be a place where a program can do I/O, or it can contain a list of your projects. If there are several views in one section of the window, then there will be tabs at the top of the section to select the view that is displayed in that section. Each view displays a different type of information. The whole set of views is called a perspective. Eclipse uses different perspectives, that is, different sets of views of different types of information, for different tasks. For compiling and running programs, the only perspective that you will need is the "Java Perspective," which is the default. As you become more experienced, you might want to use the "Debug Perspective," which has features designed to help you find semantic errors in programs. There are small buttons in the Eclipse toolbar that can be used to switch between perspectives.

The Java Perspective includes a large area in the center of the window that contains text editor views. This is where you will create and edit your programs. To the left of this is the Package Explorer view, which will contain a list of your Java projects and source code files. To the right are some other views that I don't find very useful; I suggest that you close them by clicking the small "X" next to the name of each one. Several other views that will be useful appear in a section of the window below the editing area. If you accidentally close one of the important views, such as the Package Explorer, you can get it back by selecting it from the "Show View" sub-menu of the "Window" menu. You can also reset the whole window to its default contents by selecting the "Reset Perspective" from the "Window" menu.

Eclipse Oxyzen is one of the best IDEs for Java Application development.