Rabu, 30 Januari 2013

Running Eclipse for the first time

Running Eclipse for the first time



  • Find the file named Eclipse.exe (on Windows) or Eclipse (on Ubuntu) and then double-click
  • At the first run Eclipse, Eclipse will ask workspace, the folder where the project and it is put. You can place it anywhere as long as not in the Eclipse folder itself.
  • Click Browse and select the folder that is desired. Tick ​​"Use this as the default and do not ask again"
  • Opening page will appear. Click "Workspace", the rightmost button-shaped arrows to fit into your workspace.
Your first Java program :

  • Click "File -> New -> Java Project"
  • Fill in the project name (example :  SelamatDatang), then click "Finish"
  • After Eclipse project for making your workspace on the left you will see your project directory structure that starts with the name of the project, the src folder, and the folder JRE System Library
  • Right click on the src folder, then "New -> Package"
  • Fill in name of the package (example :  selamatdatang), then click "Finish"
  • Right-click again on selamatdatang folder, then "New -> Class"
  • Fill in the name of the class (example : SelamatDatang)
  • Because this class is the main class that will be directly executed by the JRE (Java Runtime Environment), click "public static void main (String [] args)" in the "Which method stubs would you like to create?"
This is an example of a print screen that I created :



  • Click "Finish"
  • Eclipse will create a program that contains an empty package and class according to the name you entered in the previous stage
  • Now type the following programs under the "/ / TODO"
  • System.out.println("Selamat Datang!");
  • Then save the result
Running your first Java program :

  • To run your program, click "Run -> Run"
  • At the bottom of the tab titled "Console" program results are displayed
  • The program will feature writings Welcome! as in the picture below


And this is the result :     


NB         : If There is a difficulty, Stay Comments only. 
                It was rather difficult. 
                I will help as much as possible. 
                Thank's for your visit my blog.







»»  READMORE...

What is Eclipse ?

Eclipse IDE


Eclipse is an open source community that aims to produce an open programming platform. Eclipse consists of a framework that can be developed further, auxiliary equipment to create and manage software from the beginning to launch. Eclipse Platform is supported by a large ecosystem consisting of vendor technology, and innovative start-ups, universities, research institutions and individuals.

Many people know Eclipse as an IDE (integrated development environment) for Java, but Eclipse is more than a Java IDE.

Eclipse community has more than 60 open source projects. These projects are conceptually divided into 7 the category of:

1. Enterprise Development
2. Embedded and Device Development
3. Rich Client Platform
4. Rich Internet Applications
5. Application Frameworks
6. Application Lifecycle Management (ALM)
7. Service Oriented Architecture (SOA)
Generally used Eclipse to build innovative, industry-standard software, and tools along frameworknya help job easier.

License

Eclipse uses EPL (Eclipse Public License), the license that enables organizations to make Eclipse a commercial product, and at the same time asking people to contribute to change the result back to the community.

Installation

  • You need a Java 5 JRE to run Eclipse.
  • Download Eclipse IDE for Java Developers to use Learning Java code on this site.
  • Use your operating system utility to uncompress the file to your hard disk.
  • Note for Windows : If you use a file compression utility from Windows XP or Windows Vista itself, the utilities are sometimes unable to open files with long names. If you are having problems decompressing Eclipse on Windows, put the results of decompression in the root directory (eg C: \ eclipse) or use other free decompression software such as 7-Zip.
»»  READMORE...

The introduction of Java in Eclipse

History of Eclipse


         Eclipse was originally developed by IBM to replace software IBM Visual Age for Java 4.0. This product was launched by IBM on November 5, 2001, who invested as much as U.S. $ 40 million [1] for development. Since then the Consortium Eclipse Foundation Eclipse took over for further development and organizational arrangements.

Eclipse is an IDE (Integrated Development Environment) to develop software and can run on any platform (platform-independent). Here is the nature of Eclipse:



  • Multi-platform : Eclipse target operating system is Microsoft Windows, Linux, Solaris, AIX, HP-UX and Mac OS X.
  • Mulit-language : Eclipse was developed with the Java programming language, but the Eclipse-based application development support other programming languages​​, such as C / C + +, Cobol, Python, Perl, PHP, and others.
  • Multi-role : In addition to the IDE for application development, Eclipse can be used for activities in the software development cycle, such as documentation, test software, web development, and so forth.

Eclipse at the moment is one of the favorite IDE because of free and open source, which means that anyone can view the programming code of the software. Furthermore, the advantages of the Eclipse that makes it popular is its ability to be developed by users with components called plug-in.

Architecture


Since version 3.0, Eclipse is essentially a kernel, which raised plug-in. What can be used in Eclipse is actually a function of the plug-in is installed. This is called the base of the Eclipse Rich Client Platform (RCP). The following are the components that make up the RCP:

  • Core platform
  • OSGi
  • SWT (Standard Widget Toolkit)
  • JFace
  • Eclipse Workbench

By default Eclipse JDT always comes with (Java Development Tools) plug-ins that make compatible Eclipse to develop Java programs, and PDE (Plug-in Development Environment) to develop new plug-ins. Eclipse with its plug-in is implemented in the Java programming language.

The concept Eclipse IDE is an open (open), easily expandable (extensible) for anything, and not for anything specific [2]. So, not only Eclipse to develop Java programs, but can be used for various purposes, simply by installing the plug-in required. If you want to develop a C / C + + plug-ins are CDT (C / C + + Development Tools). In addition, the development of visually not impossible by Eclipse UML2 plug-in available to create UML diagrams. By using PDE every person can make a plug-in accordance with her wishes. One site that offers free plug-ins such as the Eclipse downloads by project.

Controversy Eclipse


The presence in the middle Eclipse IDE competition, especially Java IDE, causing much controversy. One is the use of the Eclipse user interface. Sun Microsystems as a company that makes Java, has been issued two libraries for the development of Graphical User Interface (GUI), the Abstract Windowing Toolkit (AWT) and Swing. However, in the manufacture of Eclipse, the two libraries was abandoned for various reasons, one of which is the second library does not provide a good look and feel. So to it is developing a new GUI library, SWT.
In addition, Sun has its own IDE for Java development called NetBeans, Eclipse becomes stifling the presence of hitherto fairly large communities [3]. This can be seen with the Sun refused to cooperate in the Eclipse Foundation, though it was invited [4].
Name Eclipse as if giving the message explicit: Sun light (sun) which emit blocked by Eclipse (eclipse).


»»  READMORE...