In order to make a small case of JSP, first of all, the most important is to build a good development environment.
For this I searched a lot of tutorials on the Internet, the tutorials are completely solved, and I was careless for more than 1 hours, took a detour. So everyone in the configuration must be careful oh ~
OK, let's start the construction tour.
• Overall steps:
Note: Before downloading, please make sure you need to use the JDK version, because the JDK version is to and Tomcat version of the corresponding, I because the instructor statement,
The JDK1.7 and tomcat7.0.x versions are downloaded. MyEclipse the words with myeclipse10, of course, the higher version is OK.
1.JDK Download Install--Configure environment variables
2.myeclipse Download and Installation
3.tomcat Download Decompression (there is a version of the installation, the individual does not recommend, more cumbersome, out of the question, is not authorized to modify the Cofig file)--environment variable configuration
4. Re-enter the MyEclipse configuration
1.JDK Download Install--Configure environment variables
JDK download recommended that everyone to download the official website, more stable and secure, is to register an account, a little trouble.
\ in Baidu search, in each big--Web site download can also, currently do not see what the problem (simple and efficient version).
Installation is omitted, too simple, you understand.
--Configure Environment variables:
1. Open "My Computer"-"Properties"-"Advanced system Settings"-"Environment variables"-"Click New System Variable" Java_home
Here, put your JDK in the post-installation directory.
Then, in the new system variable classpath, enter:
.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Finally, in your PATH variable, add the
%java_home%\bin;%java_home%\jre\bin
Note: Add a semicolon to the English version before adding a variable.
Now, you can use the Win+r key to open the Run window, enter cmd, and then enter Javac after the Java check whether you are configured.
2.myeclipse Download and Installation
This is also go to Baidu under resources and tutorials, because there is no big problem, can be omitted.
3.tomcat Download Decompression (there is a version of the installation, the individual does not recommend, more cumbersome, out of the question, is not authorized to modify the Cofig file)--environment variable configuration
Tomcat:
Tomcat server is a free open source Web application server, belongs to the lightweight application server, in small and medium-sized systems and concurrent access users are not widely used, is the first choice to develop and debug JSP programs. "Excerpt from Baidu Encyclopedia"
Tomcat download is very simple, you can go to its website directly download http://tomcat.apache.org/
After entering the official website, select the version you want and the corresponding operating system, then click,
Click to download directly, after downloading the best to extract to the C-disk, the online tutorial most say so.
2. Then configure the environment variables, ..., new system variable Catalina_home input: The directory you extracted can be an example (my):
C:\Program Files\apache Software Foundation\tomcat 7.0
4. Re-enter the MyEclipse configuration
... Make up again tomorrow.
JSP environment to build a simple and efficient version