Java Basic Development environment settings under windows

Source: Internet
Author: User
Tags windows x64 apache tomcat

1.JDK the acquisition and installation

Download the JDK and install it on the Oracle website, http://www.oracle.com/technetwork/java/javase/downloads/index.html

such as Windows X64 Jdk-7u51-windows-x64.exe, which contains the JDK and JRE installed together is OK.

After the installation is complete, add the Java environment variable and add the Bin folder under the installation directory to the environment variable;

On the cmd command line, enter the command Javac, and if the screen appears then OK:

2.web Server Tomcat

Download Tomcat http://tomcat.apache.org/index.html on Apache Tomcat website

Download the file Apache-tomcat-8.0.14-windows-x64.zip Direct decompression can be used,

In the Bin folder there are two Windows Startup.bat and Shutdown.bat respectively to start and close Tomcat files, double-click

Startup.bat start Tomcat, enter the http://localhost:8080/in the browser to get the effect, indicating that Tomcat run OK.

3.java Ide-eclipse

Download eclipse from eclipse website http://www.eclipse.org/;

Download complete, after decompression can be used;

4.Eclipse and the Tomcat

Add the Tomcat server to eclipse and run eclipse at Window->preferences->server->runtime environments->add; Add the corresponding Tomcat server;

Next,browse to the Tomcat directory just now.

Finished

Set up Web browsing mode;

Modify JSP file encoding to Utf_8

5. Testing

Create a new Dynamic Web project in eclipse;

Finish

In Project Explorer, under project name->webcontent, right-click to create a new JSP file

Add the Hello World code to the hello.jsp file and click Run on Server;

Results

Java Basic Development environment settings under windows

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.