Eclipse not starting

Eclipse starts from the terminal, but when I try to start it from gui, then it says that the Java runtime was not found.

Environment Variables:

JAVA_HOME = "/Opt/jdk1.6.0_20" PATH = $ PATH: "/Opt/jdk1.6.0_20/ben"

And one more thing that I usually copy the jre folder from the jdk directory in eclipse, which works fine, but what is the actual one. I mean, this will not be the standard way to do this.

Thanks in advance

0
source share
4 answers

Modify eclipse.ini (from the Eclipse folder) and add the following at the beginning:

-vm C:/Java/jdk1.6.0_22/bin 

where C: /Java/jdk1.6.0_22/bin should be your path to the java bin directory. Keep it in two lines.

+1
source

And one more thing that I usually copy the jre folder from jdk to eclipse directory that works fine

No, this is optional or desirable. You should not do anything like that.

If you open a command shell and enter "java -version", what is returned?

+2
source

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!;)

0
source

Faced the same problem, and the proposal touched on my problem! After installing / etc / profile, as shown in the link below, I logged out and logged in to Eclipse using a graphical interface. http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/

0
source

Source: https://habr.com/ru/post/1415081/


All Articles