Eclipse starts

xiaoxiao2021-03-06  53

Eclipse The program implemented with a C language in the system's startup program as a primary program, which is just as a loader, which is mainly to detect JVM, using JVM to load the master, parsing parameters.

Get the installation directory: This function determines the Eclipse installation directory according to the directory where the Eclipse.exe file is located, Eclipse, must have a Startup.jar file in the installation directory, Eclipse.exe must be in the installation directory or its sub-directory under. It first exists in the directory where the Eclipse.exe file is located. If there is, think it is an installation directory. If not, look for the previous directory until you find the Startup.jar file. Returns NULL if it fails;

Startup step:

a) Go out of the command line

Character (if you edit in DOS, you will have extra in LINUX.

character)

b) get the module name of the application and put it into the Program variable.

c) parse the command line parameters, initialize the window system, and obtain the installation directory of the Eclipse. If you need to display the SPLASH window

d) If the user does not specify a JVM, set the JVM start-up mode (need to be required), check if the JVM posted with Eclipse, if there is this JVM, if there is no detection system JVM

e) get the startup parameters of JVM from the command line parameters and format it

f) Use the formatted JVM parameter to start Eclipse (org.eclipse.core.launcher.main), and wait for the Eclipse program to end, and detect the return code of Eclipse, determine if you need to restart Eclipse

转载请注明原文地址:https://www.9cbs.com/read-117631.html

New Post(0)