About the configuration method of JDK+Tomcat+eclipse+MyEclipse read this article enough

  • 2021-09-20 20:42:19
  • OfStack

The latest version of Eclipse, Eclipse Neon, encourages users to use Eclipse Installer for installation for the first time. This is a new technology provided by Eclipse Oomph, which enables various tools to be downloaded and installed on demand by providing a small installer.

Eclipse is an extensible development platform based on Java, so you need to make sure your computer has JDK installed before installing Eclipse. Next, we will introduce the configuration method of JDK Tomcat eclipse MyEclipse.

1. Configuration of jdk

I'm using jdk version 1.6, the same method as jdk 1.5. After executing the installer, configure it under 1. The steps are as follows: right-click "My Computer", create the attribute advanced environment variable 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 it after a value, you should add a semicolon before it, because the values are separated by semicolons. Create another variable, name: classpath value:.; % java_home%\ lib\ tools. jar; % java_home%\ lib\ dt. jar (Note: There is a dot in front indicating the current directory)

So the configuration of jdk is complete, you can test 1, run in the Start menu, enter cmd, enter java version in the open window, if it is installed correctly, the version of jdk and some information will appear.

2. Configuration of Tomcat

I use apache-tomcat-5. 5.23, copy the extracted folder to the directory you want to install, and then create a new variable in the system environment variable: name: tomcat_home value: c:\ apache-tomcat-5. 5.23 (that is, the path of tomcat), and then add it after the value of classpath variable; % tomcat_home%\ common\ lib\ servlet-api. jar (note the semicolon preceding), configuration complete. Test 1 below:

There is an startup. bat file in the bin folder under the tomcat directory. Run it and the server will run. Make a browser and enter http://localhost: 8080 in the address bar. If you enter a page with the logo "Big Cat", it means that tomcat is installed and configured correctly.

3. Configuration of eclipse and MyEclipse

eclipse and tomcat1 do not need to be installed, as long as the decompressed files are copied to the location to be installed.

MyEclipse installation to run the first installer, after the installation of *** to use the time to register 1, registration code can be found from the Internet. If you are a website program can directly open MyEclipse, you can also 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, expand MyEclipse on the left side in the open window, then expand Application servers, select Tomcat5, then select Enable in the right area, and then select the installation path of tomcat in *** boxes. The following two text boxes can be filled in automatically. Expand Tomcat5, select JDK, click Add on the right... Select the installation path of jdk in the dialog box that appears, and then confirm in turn.

The above is about the configuration method of JDK+Tomcat+eclipse+MyEclipse. See this article for enough details. For more information about JDK Tomcat eclipse MyEclipse configuration, please pay attention to other related articles on this site!


Related articles: