Build a Java web development environment, write the first Java Web program using eclipse

Source: Internet
Author: User

  • Development tool: Eclipse-jee-juno-sr2-win32-x86_64 (please download it by yourself)

  • Using the server: apache-tomcat-7.0.35-windows-x64 (please download it on your own website)

    1. Open Eclipse:

      Press to install JDK1.7 before opening

      Because eclipse needs the JDK

      Steps to read
    2. 2

      Find ' window ' under ' Preferences '

      Click ' Preferences '

      Steps to read
    3. 3

      Find ' Preferences '

      Server---rntime evironment

      Steps to read
    4. 4

      Click ' Add ' to add a new runtime environment:

      Steps to read
    5. 5

      Select ' Apache Tomcat7 '

      Click ' Next '

      Steps to read
    6. 6

      Add ' Tomcat7 ',

      The premise has been unzipped on the hard drive

      Steps to read
    7. 7

      Select JRE Runtime Environment

      Choose Jre7 here.

      Steps to read
    8. 8

      Click ' Finish ',

      You can see that the add succeeds

      Steps to read
    9. 9

      Now to create a web-engineering test:

      Create a Dynamic Web project

      Steps to read
    10. 10

      Enter project name: Test

      Select Web Server:tomcat&

      Select Servlet version: servlet3.0

      Click ' Finish ' to finish

      Steps to read
    11. 11

      View Project

      Steps to read
    12. 12

      Create a index.jsp file under Project webcontent:

      Click ' Finish ' to create the complete

      steps to read steps to read

    13. 13

      Open JSP file: Enter

      Steps to read
    14. 14

      Save content, select Index.jsp, right-click to select Run as in select ' Run to Server '

      Finally click on ' Finish '

      steps to read steps to read
    15. 15

      Start the server and display the page effect

Build a Java web development environment, write the first Java Web program using eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.