Eclipse default JDK settings ECLIPSE.INI-VM parameter

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.