Eclipse launch three: Launcher plugin (Baidu space Migration)

Source: Internet
Author: User

Eclipse launch three launcher plug-in
    • Space

The boot plugin is named Org.eclipse.equinox.launcher.<version>, and the Ingress class Org.eclipse.core.launcher.main. It is the oldest plug-in for Eclipse virtual machine startup

Main overall process:

1. Handling command-line arguments

2. Setting Virtual machine properties

3. Processing configuration

4. Get the installation path

5. Get the boot path

6. Loading the JNI dynamic library

7. Setting Security Properties

8. Handling the splash screen

9. Launch the Eclipse Core framework

1. Handling command-line arguments parsing command-line arguments

-showsplash Locating the splash screen file parameters

-vmargs Java Virtual machine parameters

-NL local Language settings correspond to System Properties osgi.nl

-VM locating Java Virtual machine parameters

--launcher.library Shell Dynamic Library Path

-launcher Launcher Program Location

-startup Startup.jar is in the same location

-name the name of the startup program corresponds to the system Properties Eclipse.launcher.name

-exitdata Exit Data

-configuration configuration file location corresponds to System Properties Osgi.configuration.area

-install installation path corresponds to System Properties Osgi.install.area

2. Set the virtual machine properties to set the resolved virtual machine parameters to the system properties

The system attribute ECLIPSE.VM originates from the parameter-VM

The system attribute Eclipse.vmargs originates from the parameter-vmargs

System Properties Eclipse.commands from the entire command line

3. Processing the configuration file

Locate Profile Config.ini algorithm:

1. Read System Properties Osgi.configuration.area

2. If the first step is not found, read the system Properties Osgi.baseConfiguration.area

3. Read the Osgi.configuration.cascaded property if the property value is true to indicate that the configuration file needs to be cascaded, read the Read System Properties Osgi.sharedConfiguration.area

4. If the configuration file is not found in the third step, locate it in the/configuration directory under the installation path

5. Merging properties from a configuration file into System Properties

6. Read the system attribute Osgi.framework, whose value is the boot path

8. Processing splash screen Display splash screen window

Algorithm for locating the flash screen icon splash.bmp

1. Read System Properties Osgi.splashlocation

2. If not found in the first step, read the Osgi.splashpath property. Typically this property is specified in the configuration file

2 System properties are saved in this step

Org.eclipse.equinox.launcher.splash.handle the handle of the splash screen window

Org.eclipse.equinox.launcher.splash.location the location of the splash screen icon

9. Launch the Eclipse Core plugin to create the URL ClassLoader and invoke the Org.eclipse.core.runtime.adaptor.EcluipseStarter Run method

The parent loader of the URL class loader is specified through the System Properties Osgi.parentclassloader or Osgi.frameworkparentclassloader, which determines the class scope that the program can access

If not specified, the parent class loader is bootstrapclassloader.

The property value boot represents Bootstrapclassloader

Attribute value app represents Systemclassloader

Attribute value ext denotes extensionclassloader

The current class loader is represented by the property value

Collected in 2012-12-10 from the Baidu spaceproblem with the article? Click here to give us feedback

Eclipse launch three: Launcher plugin (Baidu space Migration)

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.