Question: Why is the original Java uninstalled when I install EDAS Agent?
Answer: When you install EDAS Agent, in addition to Agent required by the EDAS runtime environment, the dependent environment must be installed, for example,
JDK. Because EDAS currently supports JDK 1.7 and JDK 1.8, two command options are provided during EDAS Agent installation. If you select
-java 7, JDK 1.7 is installed; if you select
-java 8, JDK 1.8 is installed. JDK 1.7 is installed by default.
When EDAS Agent is installed for the first time, all files are downloaded and initialized. If the ECS instance where JDK is to be installed has been installed with JDK of the specified version, JDK is not installed again. Otherwise, the system uninstalls the original JDK and downloads and installs the specified JDK version.
The subsequent upgrade process (
second execution of the install.sh script) has the following situations:
- If the
-forceoption is added to execution parameters, all components including JDK are uninstalled and re-installed.
-forceoption is not added to execution parameters, only EDAS Agent components are re-installed by default. However, the
-javaoption for JDK is processed in either of the following ways:
- If the specified JDK version is the same as the version of the original JDK, no operation is performed.
- If the specified JDK version is different from the version of the original JDK, the system uninstalls the original JDK and downloads and installs the specified version.