Build a java web development environment and build a java web Development Environment
I recently started to study java Development. The last time I got in touch with java was three years ago. Now I have signed up for the pusoft training course organized by the company to participate in java android development. On the one hand, I am interested in android development. On the other hand, I want to try something new to better understand C #.
To do well, you must first sharpen your tools. Not to mention nonsense. It is king to run a hello world first. This article describes jdk installation and configuration, tomcat installation and configuration, and eclipse installation and configuration.
I. jdk installation and configuration
Jdk: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Jdk has many versions, such as linux, mac, and windows. I use win7 64-bit. By default, the installation directory is c: \ java.
The environment variable configuration is as follows:
Under the Windows XP system, right-click my computer and choose Properties> advanced system Settings> environment variables"
In "system variable (S )"
New: JAVA_HOME: C: \ java \ jdk
New: CLASS_PATH:.; % JAVA_HOME % \ lib
Edit: PATH: Add % JAVA_HOME % \ bin at the beginning;
After creating the environment variable, open cmd and enter "java-version" to verify whether the installation is successful.
C: \ Users \ Administrator> java-versionjava version "1.8.0 _ 25" Java (TM) SE Runtime Environment (build 1.8.0 _ 25-b18) Java HotSpot (TM) 64-Bit Server VM (build 25.25-b02, mixed mode)