In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shares with you a sample analysis of the Eclipse plug-ins and installation configurations required for JSP development. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Recently, the author is going to develop jsp under eclipse. Before development, it takes a lot of trouble to install and configure the relevant plug-ins, and there are many beginners who complain about this tedious process on the Internet. Now I write out my installation and configuration process for your reference.
I. system environment configuration
1 、 win2k professional
2. Eclipse3.1.2, you can download the latest version of eclipse from the official website http://www.eclipse.org/downloads/index.php, which is currently the eclipse3.1.2 version. After downloading, extract it (assuming to d:\ eclipse)
3. Jdk1.5.0. At present, it can not be downloaded from the site of sun. You can go to other sites and search google.
4. Tomcat5.5.0 (above 4.1s), http://jakarta.apache.org/
Second, download the plug-in
Lomboz, go to the site http://forge.objectweb.org/project/showfiles.php?group_id=97 to download lomboz-wtp-emf-gef-jem-3.1.2.zip, the older version such as eclipse3.0.x requires two files, one is lomboz and the other is emf, the new version such as eclipse3.1.2 only needs a lomboz-wtp-emf-gef-jem-3.1.2.zip, because the file already contains lomboz and emf And the version of the plug-in must correspond to the version of eclipse
III. Installation of plug-ins
There are two ways to configure plug-ins, one is to extract the plug-ins to D:\ eclipse\ plugins folder, and the other is to write LINK files. This method is relatively easy to manage plug-ins, and it is convenient to add and delete plug-ins. This is recommended. The following is mainly about using the second method, taking configuring the tomcatplugin plug-in as an example:
1. Create the following folders in turn, assuming d:\ eclipse-plugins\ tomcat\ eclipse\ plugins, and different plug-ins should create different directories, such as lomboz: d:\ eclipse-plugins\ lomboz\ eclipse\ plugins
2. Extract the TomcatPluginV31.zip to the folder you just created, and the final file directory structure is as follows:
D:\ eclipse-plugins (built manually)
| |-tomcat (built manually, if it is another plug-in, change it to another file name) |
| |-eclipse (some files will be created automatically after they are decompressed. If not, manually) |
| |-plugins (ditto) |
| |-com.sysdeo.eclipse.tomcat_3.1.0 (this is the decompressed tomcatplugin) |
3. Create a new links directory in the d:\ eclipse\ folder, and in this directory, create a new file tomcat.link (you can create a text file with any file name, and then save it as a link file). The content is: path=d:/eclipse-plugins/tomcat, indicating that you point to the location of the plug-in. If there are multiple plug-ins, create multiple corresponding link files. For example, the link file of lomboz can be lomboz.link. The content is: path=d:/eclipse-plugins/lomboz, and the file directory structure is as follows:
D:\ eclipse
|-- links
|-- tomcat.link (create a new link file when configuring other plug-ins)
4. Start eclipse and you can see that there are more tomcat options on the menu bar. If it is not successful, delete the org.eclipse.update folder under configuration and restart eclipse.
Similarly, the plug-in lomboz is also installed according to the above method. After successful installation, you will see more Lamboz, web Services and other related tags in window- > preference in eclipse.
IV. Configuration of plug-ins in eclipse
Now that the plug-in is installed, configure it in eclipse:
1. Install JRE:
After starting eclipse, go to window- > preferences, and select java- > Installed JRES, as shown below:
Click the Add button and the following dialog box appears:
Enter the relevant parameters. When correct, click OK, and the result is shown in the previous picture.
2. Configuration of TomcatPlugin:
Also in window- > preferences, select the tomcat tag
Click the Apply button, and then select the Advanced tab
Select the tomcat installation directory, click the Apply button, and then select the JVM Settings tab
Click the Apply button
3. Configuration of Lomboz
The configuration of Lomboz is relatively simple. In window- > preferences, select the Lomboz- > Server Definitions tag.
Click OK; so that all the configurations are finished. Let's test the results.
5. Testing
To create a new project named WebTest, select File- > Project- > Web- > Dynamic Web Project, as shown below:
After the project file is completed, create a jsp file webtest.jsp in WebContent, as shown in the figure:
The webtest.jsp code is as follows:
<% @ page language= "java" contentType= "text/html; charset=gb2312"% > < html > < head > < title > Welcome < / title > < / head > < body > < center > <% = "how are you?" < / center > < / body > < / html > Thank you for reading! This is the end of this article on "sample analysis of Eclipse plug-ins and installation configurations required for JSP development". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.