1.ECLIPSE download URL: http://www.eclipse.org/
2.Tomcat download URL: http://jakarta.apache.org/site/binindex.cgi
3.Tomcat for Eclipse plugin download URL: http://www.sysdeo.com/eclipse/tomcatplugin.html 4.Lomboz Download Uxtail: http://www.objectLearn.com/
These days have learned J2EE with their classmates and be a small project. I have been using JCREATOR, I have been using JCREATOR, which is very easy to use. It is a very powerful, and it is too simple to be in the development of J2EE. Satisfy. The JBulider is too large, behind the power, the cost payment is extremely high system performance consumption, and complex operation. I am just learning now, in front of JBulider, there is a bit of a small matter. Find some of 9CBS and saw a high development tool - Eclipse.
Eclipse is the meaning of eclipse, and its startup screen and icon are a Japanese-food picture, blocking the sun (sun). IBM's expectations for Eclipse are visible. Eclipse was originally created by the IDE product development group of both OTI and IBM, starting from April 1994. IBM provides the initial Eclipse code foundation, Platfrom, JDT, and PDE. It is currently led by IBM, which has developed around the Eclipse project, which has become a huge Eclipse alliance, of which Borland, Rational Software and WebGain and two famous Linux vendors Redhat and Suse.
IBM plans to replace Visual Age for Java with Eclipse, and the latest version 3.0 has been released to 8M version (test version). But its future goal is more than just the IDE environment specializing in developing Java programs, according to Eclipse architecture, by developing plugins, it can extend to any development language, even becoming a picture drawing tool. And Eclipse is an open source project, anyone can download its source code and develop its own function plugin on this basis.
This project development based on Java technology, our group chose J2EE platform, where the server uses Apache's Tomcat 5.0.16, Eclipse as an open source project, naturally cannot have a complete development and technical support system to Microsoft's VS series. Its configuration and use have always been the focus of developers arguing and learning. There are also many articles on these aspects on the Internet. In order to make the members of this group, I have learned to learn, and write this document. Writing their configuration and usage, writing with my experience, convenient. Subsequently, there were many friends on the Internet to learn Eclipse, so I published this document to my blog, I hope to bring some convenience to you. Since I am first studying using Eclipse, it is inevitable that there are many mistakes, I also hope that everyone can understand.
I selected Eclipse is a 2.12 version (after another, Eclipse means this version), is a relatively mature version. Tomcat is a version 5.0.16 mentioned (later, Tomcat refers to this version).
After downloading Eclipse, it is a compressed package that will be decompressed and does not need to be installed. You can run the Eclipse.exe in the Eclipse directory. Before use, let's take a configuration, Eclipse itself does not directly support Tomcat and JSP programming, you need to install their plugins. Download TomcatPluginv221.zip and copy the unzipped com.sdeo.eclipse.tomcat_2.2.1 folder to Eclipse / Plugins, this is a plugin that supports Tomcat, and there is a lomboz.212.p1.rar folder, which is support JSP programming plugins, copy the com.objectlearn.jdt.j2ee and com.ObjectLearn.jdt.j2ee.editors to Eclipse / Plugins. After installing tomcat, make sure there is a few files in jasper-runtime.jar, jsp-api.jar, servlet-api.jar, jardi.jar under the {Tomcat_Home} / common / lib folder. Start Eclipse, the first start will have a configuration process, select Window / Preferences on the menu, select Java / ClassPath Variables, New Add a named JDK_Tools and point to your {JDK_HOME} /lib/tools.jar environment variable. At this point here, you should click OK after adding an environment variable, determine (turn this dialog, because this option does not do this, if this setting will not take effect), reopen this dialog, then select Tomcat /, Select Version 5.x in Tomcat Version and point the following Tomcat Home directory to your Tomcat installation directory, and click Apply. Select Lomboz / to point JDK Tool.jar to {JDK_HOME} /lib/tools.jar. Select Lomboz / Server Definitions, select Apache Tomcat 5.x in Server Types, and check the Application Server Directory to {Tomcat_Home}, Apply Check the environment variable in Server ClassPath and Project Classpath tabs (red fork). After closing this dialog, select Window / Customize Perspective for the menu, check the Lomboz Action and Tomcat options.
We explain the use of Eclipse in the development of a servlet program. First, first create a Tomcat Project, in Project Name, the example is called, the example input servletStudy, note that the name here is not required to be a folder name stored in your project file, nor is it deployed to {Tomcat_home} / webapps Clip name, cancel Use default, and give your project to specify a storage directory. Second, then create a new package, this package will automatically add the first line of the .java file in the later encoding, that is, the Java statement (Package package name;) Enter fulq.servlets. When you give a name, you can use a "point" to give the packet layer. Third, in the new Lomboz J2EE Moudle, specify a moudle name in WebMoudle, this name is the folder name deployed in {Tomcat_home} / WebApps, the sample input UIiang, then specify the server in the Targeted Servers tab to specify the server for Apache Tomcat V5.x, click Add. 4. Select Lomboz Servlet Wizard in the New Dialog box, select the package name just added in Package, (the system will automatically add the name here, but it is best to click Browse, manually add a package name, in my test If you don't do this, it will not be properly deployed when running. Named for servlet (this name is the name of the .java file), the sample enters Kisai. You can select the method you want to implement below, and the system will automatically add these methods to your code. After NEXT, select the moudle name created when the third step is in Web Modules, and fill in the name of the servlet in the servlet name. The following mapping URL is the path name of the XML document map, remember to add /, sample input / kisai. FINSH 5, the system automatically generates some code, including the first line of package fulq.servlets;, and IMPORT must have a system package, write code and save. More written code information see the code skills behind. 6. Click on the Lomboz Action button on the toolbar to open the Lomboz J2EE View window (under the screen), right-click UIiang / Delpoy, click Start Tomcat on the toolbar or right click on the apache tomcat v5.x under uiiang in Lomboz J2EE View. Click Run Server. Start Tomcat. After Tomcat is started, open IE, type http://127.0.0.1/uiiang/kisai, code, and configure no error, you will see the run results of the servlet.