Eclipse Development Environment Configuration
?
?
- Java environment
Installation
This system uses JAVA6 development, the teacher uses the 1.6.0 _45 version development, as shown:
?
The "Development Tools" Directory provides 1.6.0 _45 version 32-bit and 64-bit two installers, all based on their own computer operating system to choose from.
?
Double-click Run 1.6.0 _45 Setup to install the JAVA6 environment on your computer, and be aware that the JDK and JRE are installed at the time of installation.
?
?
Configuration
?
After installation, you need to configure the environment variables as follows:
?
Configure the Classpath as follows:
?
?
?
and add the bin directory path in the JAVA6 installation directory in path, as follows:
?
?
Verify that the installation is successful, CMD enters the command line mode, enter Java, and the following screen shows the installation of Java complete:
?
?
?
- Web container
Installation
This system development environment uses TOMCAT6 and above, "development tool" The directory provides apache-tomcat-7.0.52.zip and apache-tomcat-7.0.47-windows-x64.zip two installers, respectively, for the TOMCAT7 32-bit and 64-bit installation packages.
?
Unzip the installation package to their own computer, it is recommended not to extract to the Chinese directory, the teacher's tomcat7 placed in the e-packing directory E:\apache-tomcat-7.0.52.
?
Configuration
Some of the installation tutorials on the web mentioned the need to configure the Catalina_home environment variable, which points to the Tomcat directory, mainly for the sake of the use of Tomcat, if configured, you have more than one Tomcat directory on your computer can only successfully run that and Catalina_ Home consistent Tomcat, if not configured, will determine the Tomcat directory itself when you start Tomcat, which we will not configure.
?
?
Run
?
Run the Bin/startup.bat in the Tomcat directory, start Tomcat, if it does not start up to logs to view the error log, after startup there is a browser input http://localhost:8080/, enter the following screen to indicate that the Tomcat installation was successful.
?
?
- Eclipse Environment
?
Installation
Developed using eclipse, this system is developed from the Eclipse website (http://mirrors.hustunique.com/eclipse/technology/epp/downloads/release/kepler/ sr2/) Download the Eclipse Java EE Development environment, with the Eclipse-jee-kepler-sr2-win32.zip and eclipse-sdk-4.3.1-win32-x86_64.zip two installation packages in the developer directory, The 32-bit and 64-bit installers, respectively, are installed according to their operating system.
?
Unzip the installation package to a fixed location, it is recommended not to extract to the Chinese directory, run: Eclipse.exe, the first run will let you determine your own workspace, the workspace is where you create Project project, choose an easy to use directory as your workspace, the proposed workspace directory is not set in the Chinese directory.
?
Configuration:
Java Environment configuration:
?
?
?
?
Compiled version:
?
Select the Java Runtime Environment:
?
?
?
?
?
?
?
Server Configuration
To configure the Web Server, the system uses TOMCAT7 as the Web container and needs to configure the Tomcat Server with the following configuration steps:
?
Add Tomcat Runtime Environment
?
?
?
?
?
?
?
Click Finish
?
Add Tomcat Server
?
?
?
?
?
Show Tomcat Server
?
?
?
?
?
Configure Tomcat
?
?
?
?
?
Add the Java Memory Settings command to the top red box:
-xms128m-xmx512m-xx:permsize=128m-xx:maxpermsize=512m
?
?
?
By default, Eclipse deploys the project to the Eclipse directory, which is more difficult to manipulate than the directory hierarchy, and is changed to Tomcat's own deployment directory.
Note: If an eclipse's tomcat has been added to the project, you need to remove the project under Tomcat in Eclipse before you can set the item
?
?
Configuration complete, click Save.
?
?
?
?
Eclipse Default Character Set
Change eclipse default character set to Utf-8
?
?
?
?
?
Web Engineering Testing
Create a Web project to test whether Tomcat can be used.
?
Create a Dynamic Web project
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
Create a new JSP:
?
?
?
?
?
Deploy run in Tomcat
?
?
?
?
?
?
?
?
?
?
?
?
?
Re-deploy:
?
?
?
Eclipse Memory Settings
To prevent eclipse from running memory overflow during startup, modify the Eclipse.ini file to add the following:
-xms128m
-xmx768m
-xx:permsize=64m
-xx:maxpermsize=128m
Eclipse Font Modification
?
?
?
?
Eclipse Add code hints
?
?
In the red box above, enter:. abcdefghijklmnopqrstuvwxyz
?
Eclipse Development Environment Configuration