Java Cafe - ECLIPSE

xiaoxiao2021-03-06  40

In order to more practical, Eclipse removes some of the pure OO elements, found a good balance between idealism and practicability. Although this makes some pure OO's followers are sad, combined with practical applications, listen to the user's voice, maybe this is the root cause of Java so success. ■ 2.2, Eclipse's architecture If Java developers are more than the blacksmith, then the Eclipse is better than the blacksmith shop, but it can not only make products, but also to create development supplies. When you downloaded Eclipse, you can directly reach: Java Development Toolkit, Java Development Toolkit, JDT, which is used to edit and debug Java source code, and the function is equivalent to IDE for developing products. Can expand the plug-in development environment (PDE) of the Eclipse itself, which is like a plug-in development package for multimedia players such as WinAmp to create development tools. In fact, Eclipse's basis is an Eclipse platform, providing software development tool integration services, while various development provision, including JDT and PDE, are provided in the form of a plugin. The plugin design makes Eclipse have an open-expandable structure. For example, if you want to develop C / C programs, install a C development toolkit, an abbreviation CDT mode plugin instead of JDT. Similarly, by developing the corresponding plug-in, Eclipse can also be used to develop Microsoft's C # program. The beauty of Eclipse design is that in addition to the core, others are plugins.

Eclipse's architecture through plug-in mechanism, Eclipse reflects a subjective attitude: it provides an open platform, an equal opportunity to participate, and some general rules that need to be observed, then you want to enmise you so much, It is also a way to use Eclipse. If you have a new need and Eclipse is not satisfied, you can do a plugin yourself, but not only the food, but also a direct contribution to the entire Eclipse community. Subjective energy is not the only attitude of development tools. Developed with Eclipse, such as Borland's JBuilder, using another approach: You pay high cost, Borland offers a near Almighty JBuilder - including JSP that supports Eclipse not built-in-provided JSP (server-side dynamic webpage Technology), EJB (an enterprise-level data persistent technology) and the development of Web Services (Web services). If you ask new features, you can tell Borland that listen to the user's opinion, and maybe they will add new features to meet your requirements in the next version. Of course, you may not be completely ignored, think that your needs are not enough to develop a new feature. Borland's attitude is full of business, JBuilder is also classic, but Eclipse's kindness and freedom, the user's sense of believing, overflows. 2.3, open source Eclipse is an open source software, which is published in the form of Common Public License (CPL). Open source usually means free, Eclipse is no exception. Open-Source Software We know that many software around me is not including source code, especially the earliest concept of patent law, Bill Gates and his Microsoft. It is a treasure of the Windows operating system and the Office system source code as the treasure of protection intellectual property, constructing technical barriers, and Dafa. Even if Microsoft's employees can only peek in the peak, there is no true face. The public source code software is the software that can be used by the public, and the usage, modification, and distribution of this software are not limited by the license. Unlike free software, open source software is usually copyrighted, its license may include: protected source code status to maintain the author's identity announcement to development control. Although there is a restriction on the copyright of the source code, the public source code software is much better than traditional commercial software in transparency, customizable, copyright, and price (usually free). Of course, technical support is better than traditional commercial software. And the development schedule is lacking. Open source software is not incompatible with commercial software. Many open source projects, such as BSD UNIX, Linux, Mozilla, Apache, and the current Eclipse show that business or free software can benefit from the facts of open source. There are many reasons, and the foundation is that a successful open source project creates value for everyone. For more information on public code, please refer to Open Software Initiative (osi), their website is: http://www.opensource.org. ■ Although Eclipse is an open source project, it is the development of project development by IBM's commercial main body, which is different from ordinary tend to have no government-oriented open source software. In fact, the CPL authorization is intended to facilitate the promotion of commercial applications on the Eclipse platform, presenting an eccissive system coexisting based on Eclipse free and commercial software.

Many people complain that IBM has too much influence on Eclipse, thinking that Eclipse will become an IBM home hobby ware (ie, no open source spirit of personal happension software). IBM is very simple - creates a new market with Eclipse's exquisite open-agent-expanded architecture, plug-in manufacturer and users can take the cake. The author believes that this concept is a problem, as long as it adheres to the principle of opening and exchange, and IBM has a deep sense of confession with Java, open source can really be successful. A natural result of the open source code is that Eclipse developers have been listening to the user's opinion - in fact, Eclipse developers itself is the most loyal user of Eclipse. In the developer of Eclipse, there is no shortage of IBM's outstanding scientists, so Eclipse's quality and philosophy are extremely excellent. When Eclipse 2.1 was released, the tragic situation of "抢" has appeared - the download is too large to lead to the server bandwidth, if you want to get a copy in the first week, it is not so easy! The new version of Eclipse has not been launched, and many vendors have made profits for Eclipse development plug-ins, and the mode of public code is successful, and the beautiful future of Eclipse is also shown. 2.4, rich expansion resources Eclipse is a software developer's blacksmith shop, refining furnace, anvil, and hammer. Just like a new tool such as a pliers in an existing tool, you can also use Eclipse to develop Eclipse plugins to extend the function. Thanks to the extremely high visibility and open source in the Java community, many individuals or manufacturers provide many tools to expand Eclipse, such as plugins such as J2EE, UML modeling, etc., very few plugins that cannot be found. . In addition, most tools are free. Third, Eclpise's acquisition with installation 3.1, downloading the download web page for Eclipse Eclipse is http://www.eclipse.org/downloads/index.php. Given the fascinating Eclipse 3.0 Release will be released around June 25, 2004, we will use Eclipse 3.0 M9 Stable Build to explain. The Windows version of the file name is Eclipse-SDK-3.0M9-WIN32.ZIP, about 85.3MB. The newspaper of the news of open source software has a number of open source software, many open source software have a certain version of the customary version. It is like this to be a black dialect. I don't know if I will eat a big loss. Release - Realizes the characteristics of commitment and through a thorough test of a stable version. This version is generally very robust, and has many third-party software that can be used, suitable for development of business projects. When writing this article, the latest release version of Eclipse is 2.1.3, released on March 10, 2004. Release is equivalent to the formal version of Windows. Stable Build - New Release version generally has to pass several development cycles, during which, if a version is relatively stable, the developer will release it as a Stable Build, the user who is for the essence of new features in the first Time experience. This is equivalent to the Beta test version of Windows. Integration Build - When the Eclipse developer has issued a version of the stable part, certainly cannot guarantee that the components can be friendly cooperation. If possible, it will be upgraded to Stable Build. Normal user download is not recommended. Nightly Build - The version constructed every night is the product of the automatic tool, which is convenient for the exchange between developers. This version of the version is not guaranteed, and the user download is not recommended. As can be seen from the above, you can usually use a new Release version to make project development, or Stable Build.

■ 3.2, install the Eclipse installation Eclipse is easy to unusually unusually unpacking the Eclipse directory in the zip package to the root directory of the C board. 3.3, Starting Eclipse You must have J2SE 1.4 SDK or JRE to run Eclipse, please refer to the last serial load. After everything is ready, double click "C: EclipseECLIPSE.exe" to start Eclipse. Launch Eclipse for the first time, it will allow you to configure workspaces, generally choose the default option: Configure the workspace from version 3.0, Eclipse joins the very user-friendly Welcome Home, you can play it yourself. Fourth, develop Hello World with Eclipse! Let us experience the authentic Java development through the Hello World! Program. 4.1, New Java Project Select Menu File, New, Project ..., select Java Project, click Next, open the New Java Project Wizard. Fill in HelloWorld in Project Name, because other options are not needed, press FINISH button, 4.2, New HelloWorldApp class Select File-> New-> Class on the menu, in the New Java Class Wizard, Name Box Enter helloworldApp And in front of the "Public Static Void Main (String Args" option:

The New Java Class Wizard This time, there is a prompt, because our project is simple and no need to use Package, so it is not necessary. Finally press the finish button. At this time, you will find that the frame code of the Hello World! Program in the last serial load has been automatically generated. This is the code generating feature of Eclipse. 4.3, adding a print statement compared to the code in the last serial load, only the statement of "Hello World!" Is now lacking: System.out.Println ("Hello World!"); Let us see how you can Quick input. Referring to the figure below, first move the cursor to the "{" of the "main" function line, enter, the cursor will automatically jump to the next row and more than one TAB bit indentation, automatically hold the aesthetics of the code. Now enter "System", pay attention to "s" uppercase. Then enter ".", Then you will find a menu that automatically pops up, showing all member variables and methods of "System"! Then enter "O", the pop-up menu will automatically filter the member variables and methods of "O" head, so there is only "OUT", you only need to press Enter, "OUT" is automatically added "." . Continue to enter ".", Will also jump out of the menu to display "OUT" method. Due to a lot of ways of "out" is called "Print", you can enter "Println" directly or search in the drop-down menu and press Enter. At this time, you will find that brackets behind "Println" are automatically generated. Move the cursor inside the bracket, enter quotation marks, and Eclipse will automatically add another half of quotes. Enter "Hello World!" In the middle of the two quotes. Finally, move the cursor to the end of this line, type ";".

Application code completion characteristics Although it is very coming, you can do this more comfort in your own operation. This is the code completion of the Eclipse code. The code is completed: By automatically filtering the speed of the input by selecting the way to select the Enter key to avoid input errors When you can notify a member variable or method of a class, you can effectively prompt you there is also a practical skill: When there is a syntax problem in your source code, the Eclipse editor uses a red bigk plug-in wavy line to mark, and you should correct it according to the prompt. 4.4, running the Java program Now we run this program directly in Eclipse to see the results of the execution result. Press "Run-> Run ...", Eclipse pops up the running setup wizard, ask the configured configuration. This program is a Java program, so select "Java Application" in Configurations, then press the "New" button. When Eclipse creates a good configuration, you only need to press RUN to see the result. Take directly in Eclipse to see the results of the operation. The small knot is in this round of our thick brief introduction to the knowledge of Eclipse. In fact, Eclipse is profound and contains many incisive methods and concepts, which is a lot of experience in many IBM scientists. Limited to the space, you can't start one by one, it is very regrettable. Due to the Java Cafe Theme or Java language, you can't let Eclipse winner. However, many philosophical ideas in Eclipse are generally used in software development, and many software methods and technologies are unlearable. I hope that you have time to play Eclipse, this software is not less than a few thousand US dollars! Finally, it is recommended to read the USING JAVA Development Tools in Eclipse written by Jim d'Anjou et al., The URL of this article is http://www.awprofessional.com/articles/article.asp?p = 31789, the article is used by JDT There is a meticulous introduction. Welcome everyone to continue to my network http://garychan.3322.org. The network is a good way to learn together. Through communication, we will share the replenishment and share innovation, and make progress together. If you feel a few words about a piece of Java Cafe, or what is the requirement for the next theme, first, please register as a network user, then you can log in and speak. Waiting for your participation.

转载请注明原文地址:https://www.9cbs.com/read-56733.html

New Post(0)