why Spring tool suite IDE shows error message as “JVM terminated. Exit code=127”

I tried to install spring-tool-suite 4.1(64 bit) on Cent OS-7, when i try to run installer, it shows message like “JVM terminated. Exit code=127”

I have a latest 16.0.2(64 bit) JDK version, Edited the .ini file with correct jdk path, but still it shows the same error message

I faced the same problem while using eclipse installer also, tried the given solutions in stack overflow, none of them worked

enter image description here

This is the version I am using:

java -version
java version "16.0.2" 2021-07-20
Java(TM) SE Runtime Environment (build 16.0.2+7-67)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)


Make sure

  • using a 64 bit Java VM of the same architecture to run Eclipse (in your case x86_64) and
  • on Linux having GTK 3.20 or higher.