Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install TomcatPlugin in Eclipse

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to install TomcatPlugin in Eclipse. It is very detailed and has a certain reference value. Friends who are interested must finish it!

Install the tomcatPlugin plug-in (tomcat can be used directly in eclipse after installation)

① downloads TomcatPlugin. You can download the tomcatPluginV32beta3 version of * *, which supports eclipse3.2.1 and tomcat6.0

② create a new folder under D:\ eclipse and name it "myplugins" (optional name). Under "myplugins", create a new folder "tomcat", "eclipse", "plugins", and "features". The directory structure is as follows:

D:\ eclipse\ myplugins\ tomcat\ eclipse\ features

D:\ eclipse\ myplugins\ tomcat\ eclipse\ plugins

Put the extracted tomcatPlugin folder in this plugins directory

③ creates a new text file tomcat.link.txt under D:\ eclipse\ links (the file name is optional, and the extension must be .txt or .link). The content is: path=myplugins/tomcat

(recommended: you can also use the absolute path path=D:\ eclipse\\ myplugins\\ tomcat).

④ starts eclipse, you can see the "Tomcat" option in the menu bar, and you also need to configure it. In "Window" = > "Preferences" = > "Tomcat", select the Tomcat version Version5.x (I use Tomcat5.5.20, put it under D:\ Tomcat, for Tomcat6.0, select Version6.x), and set Tomcat home. There are two choices under "Context declaration mode", one is configuration file, which is placed in D:\ Tomcat\ conf\ server.xm by default, and the other is that Context directory is placed by default under D:\ Tomcat\ conf\ Catalina\ localhost and is free to choose as needed (for Tomcat6.0, Context directory is placed under D:\ Tomcat\ webapps by default). Here I choose "Context directory" and change it to D:\ Tomcat\ webapps (it doesn't matter which one you choose here. Because only discussing the use of tomcatPlugin ~)

⑤ can start tomcat under the Tomcat menu.

Note: for eclipse3.2.1+tomcatPlugin3.2beta3, you can start tomcat normally in eclipse for Tomcat5.0.12 under both Tomcat5.5.20 and Tomcat6.0, and Console will report an error when starting in eclipse:

Tomcat6.x [Java Application] C:\ Java\ jdk1.5.0\ javaw.exe

It is very strange that the report is Tomcat6.x 's fault, probably because of the beta version, so you * download the above version of Tomcat5.5 on the apache website (by the way, Tomcat6.0 supports JSP2.1 and Servlet2.5, and makes a comparison later for reference) ~ ~

⑥ above 5 steps is a more troublesome installation, the easiest way is as follows, but this aspect may not be successful, may be the reason for the version! Put the extracted tomcatPlugin folder directly into the D:\ eclipse\ plugins directory and start eclipse. However, the installation will cause the plugins directory to become larger and larger, and it will be inconvenient to maintain in the future, so * install it with the link method above.

The above is all the contents of the article "how to install TomcatPlugin in Eclipse". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report