The author recently prepared in the eclipse under the JSP development, before the development of the relevant plug-in installation and configuration quite a lot of trouble, online there are many beginners to this cumbersome process complained, now I put my installation configuration process to write out for your reference.
first, the system environment configuration1, Win2K Professional 2, Eclipse 3.1.2, can go to the official website http://www.eclipse.org/downloads/ index.php Download the latest version of Eclipse, currently eclipse3.1.2 version, after the download, unzip it (assuming to d:/eclipse); 3, jdk1.5.0, the current sun's site can not download, to other sites to see, To Google search, 4, tomcat5.5.0 (more than 4.1 can), http://jakarta.apache.org/
Second, the plug-in downloadLomboz, to the site http://forge.objectweb.org/project/showfiles.php?group_id=97 download Lomboz-wtp-emf-gef-jem-3.1.2.zip, Older versions such as eclipse3.0.x to the next two files, one is Lomboz, the other is EMF, the new version such as eclipse3.1.2 only need a lomboz-wtp-emf-gef-jem-3.1.2.zip, because the file already contains Lomboz and EMF, and the version of the plugin must correspond to the version of Eclipse;
third, plug-in installationThere are two ways to configure Plug-ins, one is to extract the plug-in to the D:/eclipse/plugins folder, the second is to write link file, this method is easier to manage plug-ins, add, remove plug-ins are very convenient, recommended to use this. The following is mainly said to use the second method, to configure the Tomcatplugin plug-in as an example: 1, build the following folder in turn, assuming that the d:/eclipse-plugins/tomcat/eclipse/plugins, different plug-ins should be set up a different directory, As Lomboz can be: D:/eclipse-plugins/lomboz/eclipse/plugins 2 2, unzip tomcatpluginv31.zip to the folder that you just created, the final file directory structure is as follows:
D:/eclipse-plugins (Manually built)
|-tomcat (manually built, if other plug-ins, then replace the other file name)
|-eclipse (some files will be automatically created after decompression, if not, manually built)
|-plugins (IBID.)
|-com.sysdeo.eclipse.tomcat_3.1.0 (This is the uncompressed Tomcatplugin) 3, to the d:/eclipse/folder, create a new links directory in which to create a new file Tomcat.link ( File name arbitrary, you can first build a text file, and then save as a link file, the content is: Path=d:/eclipse-plugins/tomcat, pointing to the location of Plug-ins, if there are more than one plug-in, set up a number of corresponding link files, such as the Lomboz link file can be lomboz.link, content is: Path=d:/eclipse-plugins/lomboz, the file directory structure as follows: D:/eclipse
|--links
|--tomcat.link (When you configure other plugins, create a new link file) 4, start Eclipse and see the multiple Tomcat options on the menu bar. If it is unsuccessful, remove the Org.eclipse.update folder under configuration and restart Eclipse.
Similarly, plug-in Lomboz is also installed as described above, and window->preference in eclipse will see more lamboz, Web services, and other related tags when the installation is successful.
four, plug-ins in Eclipsethe configuration inThe plugin is installed and then configured in Eclipse: 1, install JRE: After starting Eclipse, enter window->preferences, select Java->installed JREs, as shown: Click the Add button, The following dialog box appears: Enter the relevant parameters, correct, click OK, the result is as shown in the previous picture; 2, tomcatplugin configuration: Also in Window->preferences, select Tomcat Tag, click Apply button, and then Select the Advanced tab, select Tomcat's installation directory, click the Apply button, then select the JVM Settings tab, click Apply button, 3, Lomboz configuration Lomboz configuration is simpler, in window-> Preferences, select the Lomboz->server definitions tag, click OK; All of the configurations have ended, so let's test the results;
Five, Test To create a new project for webtest, select File->project->web->dynamic Web project, such as: After the completion of the project document, build a JSP file webtest.jsp in WebContent, as shown in figure: The webtest.jsp code is as follows: <%@ Page language = "java" contentType = "text/html; charset=gb2312 "%> < HTML > < head > < title" ; Welcome </title >
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.