Eclipse's configuration file Eclipse.ini can not only set the size of the stack memory for Eclipse, but also set the JDK version that is used by default.
First, the existing Eclipse default boot JDK version is jdk1.5, need to change to 1.6 steps as follows:
Method 1:
Open the Eclipse.ini file, in front of the-vmargs parameter, must be preceded by, add the following code:
-vm
/home/david/scfjava/jdk1.6.0_02/bin/javaw.exe
Note: In two lines, the format is immutable.
Restart Eclipse and create a new workspace. This can be done by window|preferences|java| Install JREs View the default JDK version under the current working directory. When you create a new project, you will find that the JDK used by the project is modified to 1.6;
Method 2:
Change the default JDK version in the original workspace:
window|preferences|java| Install JREs, click the Add button, select the standard VM in the pop-up JRE type page list, then click the Next button, select the JDK directory in the text box like JRE home, then click Finish to return to the install JRE Page. Tick the newly created JDK version and click OK. Return to Project Explorer view, create a new project the default JDK version of the project is 1.6.
Two, the same workspace under some projects are jdk1.6, some projects are jdk1.5 settings
In an environment where the default workspace JDK version is 1.5, the JDK version of all project is 1.5 to upgrade the version of a project to 1.6 as follows:
Using the method, a new JDK version is added to make it a default workspace JDK version.
Select an item: Right-Properties|java builder Path|liberay tab |add liberay Button | Select JRE System Liberay and click Next to click Alternate JRE in the pop-up page Select the specified JDK version in the drop-down list box and click Finish. Return to the Java Build Path Liberay tab page and delete the old version of JDK 1.5.
Reprinted from http://ashaochangfu.blog.163.com/blog/static/10425173020127273137296/
Eclipse default JDK settings ECLIPSE.INI-VM parameter