Well, the reason why the eclipse does not start from the GUI, despite the fact that the environment variables are set, is:
You set the variable in bashrc or bash_profile, these two are for a specific registered user, but you also need to set in etc / profile, which is intended for all users.
So, as soon as you set PATH and JAVA_HOME to etc / profile, it will start from the GUI.
Worked for me!;)
source share