About JDK + Tomcat + eclipse + MyEclipse to configure

Say something about JDK + Tomcat + eclipse + MyEclipse configuration methods:

1.jdk configuration

I use the version jdk1.6, jdk1.5 same method. After making what is necessary to configure the installation program, as follows: right-click "My Computer", Properties Advanced Environment Variables New variables in the system: Name: java_home value: c: \ java \ jdk1.6 (this path to jdk installation path) was then added% java_home% \ bin in the path variable; followed, if added to the previous values ​​will now semicolon, since between the respective values ​​are separated by semicolons. Then create a new variable, name: classpath value:;.% Java_home% \ lib \ tools.jar;% java_home% \ lib \ dt.jar (Note: There is a point in front, the current directory)

Such jdk the configuration is complete, you can test run at the midpoint of the Start menu, type cmd, enter java -version in the window that opens if it is not installed correctly, then the version of jdk and in fact, some of the information appears.

2.Tomcat configuration

I use-tomcat- the Apache 5.5.23, after extracting the file folder by copying 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 (i.e. tomcat path), added after the classpath variable value;% tomcat_home% \ common \ lib \ servlet-api.jar ( note that there is a front semicolon) configuration. The following test:

There is a startup.bat file in the bin directory of the files in the tomcat folder, run it, the server is running. Make a browser, type in the address bar http: // localhost: 8080 If you enter a "big cat" signs of the page says tomcat installation is configured correctly.

3.eclipse with MyEclipse configuration

Like eclipse and tomcat without having to install, unzip the file after copying as long as the location to be installed.

MyEclipse installation first run the setup program, when used after installation *** To register, registration code can be found online. If the program is to make the site can be opened directly MyEclipse, you can also open the eclipse, there is no difference between the two. But if want to deploy the project and start the server in eclipse and in MyEclipse, but also to make some configuration. That is, open development tools in the menu bar choose MyEclipse windowàPreferences launched in the left side of the window that opens, and then expand Application servers selected Tomcat5, and then select the Enable radio in the area on the right, and then select a box *** tomcat installation path, the following two text boxes can be filled in automatically. Expand Tomcat5, select the JDK, the right-click Add .. appears in the dialog box to select jdk installation path, and then in turn be determined.

Guess you like

Origin www.cnblogs.com/kaschie/p/11431279.html