Eclipse Java Configuration
Before using eclipse to develop Java, you must configure some java environment variables. The following are some processes:
After j2sdk is installed, set the environment variable: My computer --- properties --- advanced --- environment variable;
Select --- system variable (s ):
Set the java_home environment variable:
Click --- New and enter java_home in the variable name.
Enter the j2sdk installation directory in the variable value.
Then --- OK. The java_home environment variable has been set here.
Set the CLASSPATH environment variable:
Click --- New and enter CLASSPATH in the variable name.
Enter D: \ Java \ bin;. In the variable value ;.; d: \ Java \ lib; D: \ Java \ lib \ dt. jar; D: \ Java \ lib \ tools. jar
(The dot "." And Semicolon ";" in the middle are required .)
Then --- OK. Now the CLASSPATH environment variable has been set.
Set the PATH environment variable:
Click --- New and enter path in the variable name
Enter: D: \ Java;.; D: \ Java \ bin in the variable value.
(The dot "." And Semicolon ";" in the middle are required .)
Then --- OK. The java_home environment variable has been set here.
Easy eclipse Configuration
1. Download and install eclipse:
You can go to the official website for release (assuming e: \ eclipse ).
2. Configure the eclipse plug-in
Common plug-ins include lomboz (jsp, j2ee development), tomcatplugin (tomcat plug-in), easystruts (struts development), emf-sdo-xsd-SDK (emf model)
There are two ways to configure the plug-in: Release the plug-in to the eclipse folder, and write the LINK file and LINK. This method is easier to manage and add plug-ins, it is convenient to delete plug-ins. The following describes how to use the second method: release all downloaded plug-ins to the same folder, for example, e: \ eclipse_plugins. take the tomcatplugin plug-in configuration as an example: Release tomcatplugins to e: \ eclipse_plugins. The organization folder is:
E: \ eclipse_plugins
| -- TomcatpluginV3
| -- Eclipse
|-Plugins (new, eclipse will automatically check the content in the features and plugins folders)
| --- Com. sysdeo. eclipse. tomcat_3.0.0
After the preceding example is created, return to the eclipse folder, create a new links directory, and create a new file tomcat. link (file name arbitrary), content: path = e:/eclipse_plugins/tomcatPluginV3 (let eclipse automatically check the features or plugins folder under tomcatpluginV3) Open eclipse, the tomcat option is added to the menu bar. If it fails, delete all the folders except config. ini under configuration and restart eclipse.
E: \ eclipse
| -- Links
| --- Tomcat. link (when other plug-ins are configured, the corresponding link file is created)
The following are commonly used plug-ins.
Lombo
Http://www.objectlearn.com/
TomcatPlugin
Http://www.sysdeo.com/eclipse/tomcatPlugin.html
EasyStruts
Http://easystruts.sourceforge.net
VE (visual editor), emf, gef plug-in
Http://download.eclipse.org/tools/ve/downloads/drops/R-1.0.2-200412091401/index.html
Properties Editor edits the java property file and can automatically save the disk in Unicode format.
Http://propedit.sourceforge.jp/index_en.html
Colorer Take colors over hundreds of types of files by syntax
Http://colorer.sourceforge.net/
XMLBuddy: edit an xml file
Www.xmlbuddy.com
Code Folding adds a variety of Code Folding functions (more than those provided by eclipse)
Http://www.coffee-bytes.com/servlet/PlatformSupport
Easy Explorer accesses the folder of the selected file and directory from eclipse
I have discussed how to install the plug-in using the LINKS method. After installation, the next task is to configure the eclipse environment.
1. Go to eclipse and choose menu> preferences to go To the graphical interface.
2. Select tomcat in the list box on the left and set the tomcat version and directory.
3. Select java on the Left bar, set jre, create a new JRE named jdk, and select the jdk directory.
4. Go back to tomcat and select JVM-Setting. In the JRE option, select the newly created jdk and select the required jar file in the Boot Classpath below.
5. Configure the lomboz Server and select Server Definitions under lomboz on the left. The configuration is as follows:
In addition, there are some examples such as java code formatter and New java file pattern, which are relatively simple to configure.