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 configure the method for JDK+Tomcat+eclipse+MyEclipse

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail how to configure JDK+Tomcat+eclipse+MyEclipse for you. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Configuration of 1.jdk

I am using the jdk1.6 version, which is the same as the jdk1.5 method. After executing the installation program, you need to configure it as follows: right-click "my computer", and the property advanced environment variable creates a new name in the system variable: name: java_home value: C:\ java\ jdk1.6 (this path is the installation path of jdk), and then add% java_home%\ bin to the Path variable If you add a semicolon after a value, add a semicolon before it, because the values are separated by a semicolon. Create a new variable named: classpath value:.;% java_home%\ lib\ tools.jar;%java_home%\ lib\ dt.jar (Note: there is a dot in front of it, indicating the current directory)

So that the configuration of jdk is complete, you can test it, run it in the middle of the start menu, type cmd, and type java-version in the open window. If it is not installed correctly, the version of jdk and some information will appear.

Configuration of 2.Tomcat

I use apache-tomcat-5.5.23, copy the extracted folder to the directory you want to install, then create a new variable in the system environment variable: name: tomcat_home value: C:\ apache-tomcat-5.5.23 (that is, the path to tomcat), and then add after the classpath variable value;% tomcat_home%\ common\ lib\ servlet-api.jar (note that there is a semicolon in front), the configuration is complete. Here's a test:

There is a startup.bat file in the bin folder in the tomcat directory. Run it, and the server runs. Click on a browser and type http://localhost:8080 in the address bar. If you enter a page with a "big cat" logo, it means that tomcat is installed and configured correctly.

Configuration of 3.eclipse and MyEclipse

Eclipse and tomcat do not need to be installed, just copy the extracted files to the location where you want to install them.

To install MyEclipse, you should run the installation program first, and register when you use it after installation. The registration code can be found on the Internet. If you are making a website program, you can open MyEclipse directly, or you can open eclipse. There is no difference between the two. However, if you want to deploy the project and start the server in eclipse and MyEclipse, you need to make some configuration. That is, after opening the development tool, select window à Preferences in the menu bar to expand the MyEclipse on the left, expand Application servers to select Tomcat5, then select Enable in the radio selection in the area on the right, and then select the installation path of tomcat in the * box. The following two text boxes can be filled in automatically. Expand Tomcat5, select JDK, and click Add.. on the right Select the installation path of jdk in the dialog box that appears, and then determine it in turn.

This is the end of this article on "how to configure JDK+Tomcat+eclipse+MyEclipse". 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, please share it 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.

Share To

Development

Wechat

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

12
Report