Recently began to learn Java development, the last contact or three years ago, now has the company's soft training courses, enrolled in Java Android development. On the one hand is interested in Android development, on the other hand want to try something new, can have a deeper understanding of C #.
工欲善其事, its prerequisite. Needless to say, first run out of a Hello world is the kingly way. This article is mainly about JDK installation and configuration, Tomcat installation and configuration, Eclipse installation and configuration.
One JDK installation and configuration
Jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
There are many versions of JDK, linux,mac,windows and so on, I am win7 64 bit. The default installation is OK, my installation directory is C:\java.
The environment variable is configured as follows:
XP system, right-click My Computer, select Properties, select Advanced System settings, click Environment variables
In system variable (S)
NEW: JAVA_HOME:C:\JAVA\JDK
NEW: Class_path:.; %java_home%\lib
Edit: PATH: Add%java_home%\bin to the front;
After creating the environment variable, open cmd and enter "Java-version" to verify that the installation was successful.
C:\users\administrator>java-"1.8.0_25"1.8.0_25-64-bit Server VM (Build 25.25-b02, Mixed mode)
Java Web Development Environment building