After installing the maven plug-in eclipse, the eclipse startup problem is: Maven integration for eclipse JDK warning.
Solution: 1. Set the JRE used by eclipse to the JDK directory installed on the local machine: 1.1 add two lines in eclipse. ini
-VM
C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin \ javaw.exe
Note: The two lines must be written, but the two lines cannot take effect. The two lines must be written before-vmargs. Otherwise, they cannot take effect.
1.2 or set eclipse -- windows -- preferences -- Java -- installed jres to change JRE home to the JDK directory.
The test showed that step 1 can be left blank, but it is recommended that you configure the development environment as a step, and the two lines in step 1 can also be written
-VM
C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin \
2. Configure the eclipse. ini file: first explain the common parameters in this file-vmargs:-vmargs
-Xms40m
-Xmx256m
-XX: permsize = 64 m
-XX: maxpermsize = 128 M-vmargs: Specifies the VM parameters.
-Xms40m: the virtual machine occupies the Minimum Memory of the system and is initially allocated.
-Xmx256m: the VM occupies the maximum memory of the system and is allocated as needed.
-XX: permsize: Minimum heap size. Generally, when the memory is insufficient, it is said that this is too small. If the remaining heap space is less than 5%, a warning will be given. We recommend that you set this slightly
Larger, but it depends on the memory size of your machine, but cannot exceed maxpermsize. -XX: maxpermsize: Maximum heap size. This is also a little larger, so if there is a problem, first adjust-xms40m: Set it to a smaller value to solve the problem. Permsize and maxpermsize indicate the limitations on memory allocation to these reflective objects, such as permanate generation, for Java permanently generated objects by virtual machines, which are not included in heap (heap memory.
3. Solve the failed to creat Java Virtual Machine problem:
Open the eclipse. ini file under the eclipse installation directory, and modify:
-- Launcher. xxmaxpermsize
128 M to m;
-- Launcher. xxmaxpermsize
256 m
128 m;
See: http://blog.csdn.net/yuanfei_1988/archive/2010/10/02/5919168.aspx