65

When I run the Eclipse.exe within the given folder, it will not start. The Eclipse splash screen will appear for a split second then close. There are no errors.

I've tried practically everything. Updating JDK and JRE: I installed JRE 7 and JDK 1.7.0_40. Both 64 bit, and they are both in the (x86) folder. I've tried re-installing them. And re-downloading Eclipse. Same result every time. I've added the VM to the config, still nothing.

I use Windows 7 and the standard Eclipse for Java IDE.

Wouter
  • 1,568
  • 7
  • 28
  • 35
Calum Richards
  • 659
  • 1
  • 5
  • 4
  • IF it Windows, Right click on My Computer, Click Manage. It will open the Computer Management, and goto Event Viewer -> Windows Log -> Application, will display the exact error message for unsuccessful Eclipse launch. Can you please update your question with that error code and msg? – Viji Sep 29 '13 at 22:10
  • Post the log from /.metadata/.log, or if you never selected a workspace, look for a *.log in the eclipse directory. – Fredrik Sep 30 '13 at 07:46
  • 1
    Just uninstalling Java 8 update 45 made my eclipse work. Thanks @Michael. – Manish Gupta May 06 '15 at 10:51
  • I have same Windows 7, and I have download the same version from http://sourceforge.net/projects/eclipse.mirror/ And It works just fine. Can you uninstall and install it again? – Viji Sep 29 '13 at 22:47
  • 1
    If someone get stuck with problem, check this solution https://stackoverflow.com/a/47948092/7856586. It so difference from anther solutions and it helps me. – Roman Soviak Feb 15 '18 at 21:48

28 Answers28

53

Go to your Workspace folder then go to Metadata > plugins. Delete everything from this folder. Then it will work.

Warning: This will delete every configuration from Eclipse!

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
AmmY
  • 1,821
  • 1
  • 20
  • 31
  • 2
    This worked for me. Recently installed a new plugin which apparently fails. Too bad that you can't delete a specific plugin and save some time reinstalling all the ones that actually work. – Stan Mar 10 '14 at 06:51
  • The .metadata folder is an area where Eclipse plug-ins can save any information they want to save. http://stackoverflow.com/a/19996319/2362301 – AmmY Jun 20 '14 at 04:53
  • 1
    Dont even do that you will be in big trouble – DropAndTrap Jul 24 '14 at 08:10
  • 9
    I tried doing this. It still don't work for me. Just uninstalling Java 8 update 45 made my eclipse work. Thanks @Michael. – Manish Gupta May 06 '15 at 10:50
  • I cut and pasted the .plugin folder outside the .metadata folder, I run eclipse and it worked. Then I closed eclipse pasted back the .plugin folder and run again eclipse without any problem. – Rudy Barbieri Mar 28 '18 at 12:09
  • 7
    This delets every configuration from Eclipse. You must say this before post – Ernesto Schiavo Apr 19 '18 at 13:26
  • Please say that this will remove all the configurations from eclipse – John Humanyun Jun 26 '19 at 06:22
  • My problem was that i didn't had ecplise installed but still had this folder, this solved it – Yogevnn Nov 11 '19 at 17:13
47
eclipse.exe -clean -clearPersistedState

All you have to do is go the dir where your eclipse.exe is there and run the above command

Muaaz salagar
  • 759
  • 7
  • 12
24

The same thing was happening for me. All I had to do was uninstalled Java Update 8

Michael
  • 241
  • 2
  • 2
  • 1
    I was unable to view even the eclipse splash screen on Windows 8.1. I had to uninstall Java 8 Update 45 to get eclipse working. – Vinay Vemula Apr 20 '15 at 06:23
  • 1
    The same issue happened to me. Just uninstalling Java 8 update 45 made my eclipse work. Thanks @Michael . – Manish Gupta May 06 '15 at 10:47
  • I had to uninstall Java 8 and install Java 7 instead, and it worked, thanks! – Daniel Johansson Aug 18 '15 at 09:59
  • I had to uninstall java 8 and then update the PATH variable to point to java 7. This post helped: http://stackoverflow.com/questions/11007611/eclipse-startup-error-jre-jdk-must-be-available Then restart my windows 7 machine for PATH change to take place and eclipse came up – JavaTec Jul 15 '16 at 16:07
19

go to : "C:\workspace.metadata.plugins\org.eclipse.e4.workbench"

if already you save backup file "workbench.xmi" replace it else delete this.

Ehsan Jelodar
  • 1,544
  • 19
  • 25
  • 2
    I tried doing this. It still don't work for me. Just uninstalling Java 8 update 45 made my eclipse work. Thanks @Michael. – Manish Gupta May 06 '15 at 10:50
12

This also happened to me. I tried some of the solutions above but couldn't get it done. What i have to do was reinstall the JRE/JDK again and it worked!

When i executed the command "java-version" in cmd, i was getting an error trying to load a class and then when i reinstalled JRE/JDK, it worked all good!

Alysson Myller
  • 1,203
  • 11
  • 13
7

I looked online and found a person who had a similar problem.

It says on the forum

"You might need to download JRE 64 bit version"

But again, it depends on what OS you're using as well.

Domecraft
  • 1,645
  • 15
  • 26
3

Kindly check the following:

1) Your eclipse version,whether it is compatible with what version of java. Have that.

2)Check the operating system specific BIT requirements either 32/64 with eclipse version.

3)Usually java will be installed in ProgramFiles for Java if both OS & Java are 64 bit else it will be in ProgramFiles(x86) if java is 32bit and OS is 64Bit.

4)Last but not least check the environment variables for Java whether it meets the requirements of your eclipse version.

Hope this Helps you!

2

What system you have - 32-bit or 64-bit? You say it was installed into (x86) folder. But normally (x86) is a default for the 32-bit JDK, not for 64-bit JDK. If you used defaults, then it seems that you installed 32-bit JDK instead of 64-bit.

mentallurg
  • 4,967
  • 5
  • 28
  • 36
  • No, I'm 64 bit. And I have 64 bit JDK and JRE. Which are in both "Program Files" and "Program Files (x86)" – Calum Richards Sep 29 '13 at 22:18
  • Are you sure you downloaded 64-bit eclipse not 32-bit? – mentallurg Sep 29 '13 at 22:21
  • No I definitely have 64-bit eclipse. I even tried downloading the 32 bit to see if that worked. But no. I'm positive I have the 64 bit. – Calum Richards Sep 29 '13 at 22:30
  • Launch console (cmd.exe), go to your eclipse directory, laucnh eclipse.exe. There may be some exception on some error message in the console. Put it here, then we'll see what to do further. – mentallurg Sep 30 '13 at 12:09
2

The actual issue should be with the OS architecture, the JDK (32bit or 64 bit) installed and the eclipse type u installed.

Bring them in sync, things would work completely fine.

Just have a check at the Eventlog as mentioned by @Viji Ideally u should encounter error like RADAR_PRE_LEAK_64

NishantM
  • 141
  • 12
2

If its a Java version problem, you can edit the eclipse.ini file and assign the compatible version to the application through adding these lines:

windows example:

-vm
C:\jdk1.7.0_21\bin\javaw.exe 

for more information: https://wiki.eclipse.org/Eclipse.ini

Umut Uzun
  • 807
  • 11
  • 13
2
  1. Press Win key + X
  2. click 'System' link from popup menu
  3. click advance setting link (Left panel) in opened 'System setting' window (Control Panel\System and Security\System)
  4. Now a window named 'System property' will be open, select 'advance' tab and click on environmental variables
  5. Select path variable from 'System Variable' list section. and click edit
  6. click new button on newly opened window and paste your Jre folder link(Jre in JDK) click okey , okey , okey
  7. re run your program :p
Sajan
  • 813
  • 9
  • 14
  • 1
    Todays people press Win-Key and search for "system environment variable" or something similar. You are talking to devleopers not managers ;) – Ilker Cat Oct 12 '17 at 14:47
1

re install your java. First check your OS version.

satyapol
  • 983
  • 11
  • 16
1

Just simply uninstall java 8 update 45, it worked for me. Also you might need to delete the metadata of your workspace as I have first deleted the metadata and then uninstalled java 8 update 45.

vjs3
  • 158
  • 2
  • 13
1

If eclipse (none of them) doesn't launch at all and there's not even an error message, uninstall Java 8 Updater and reinstall Java 8 from scratch, this should work. Have luck!

Drumnbass
  • 867
  • 1
  • 14
  • 35
0

Try to install Eclipse into a folder without spaces.

Szymon
  • 42,577
  • 16
  • 96
  • 114
0

Same problem happened with me . I started eclipse after many days , but it was not starting.just eclipse window flashing , no error nothing. After many trials , i just re-installed my jdk . It worked for me, i think some of my java files were missing or damaged . Try by reinstalling your jdk version it may work as it worked for me.

Anonymous
  • 1,726
  • 4
  • 22
  • 47
0

I tried everything except this. After rigorous trials,Uninstalling java 8 update 25 helped me.

Shree
  • 533
  • 1
  • 5
  • 10
  • This worked for me too. I have Eclipse Juno with Android ADT. It simply didn't start until I uninstalled Java 8 and installed Java 7. Thanks! – Daniel Johansson Aug 18 '15 at 09:42
0

did not have to uninstall Java JDK - just ran installer over my existing install. Not sure what was wrong but this fixed my issue with Eclipse not starting.

efultz
  • 1,135
  • 2
  • 11
  • 26
0

I had a similar problem with Eclipse mars. It suddenly over the weekend stopped working and if you ran it from a command window (Windows x64) it would flash up a line or two and then stop.

I installed Eclipse neon yesterday and it worked, but today it stopped working and went wrong in the same way.

Just now I installed the JDK from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

I installed version 8u101 and then neon started. I have not changed eclipse.ini (although I had a look at it) nor have I deleted the plugins (I renamed the folder and found that this had no effect).

Hence I think this difficult to work out problem relates to the JDK/JRE. It would be nice if Eclipse gave a bit more information to go on, but such is life.

0

I just had this issue in Eclipse Neon. After trying all these suggestions, it turned out that in my case the problem was improperly configured path variables.

There is a pretty good answer already posted here which explains it, but I'll summarize it in this answer for convenience.

You will need to go into your User Environment Variables panel and modify the following values:

  • JAVA_HOME : C:\Program Files\Java\jdk1.8.0_102
  • JDK_HOME : %JAVA_HOME%
  • JRE_HOME : %JAVA_HOME%\jre
  • CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib
  • PATH : your-unique-entries;%JAVA_HOME%\bin (make sure that the longish your-unique-entries does not contain any other references to another Java installation folder.
Community
  • 1
  • 1
leigero
  • 3,233
  • 12
  • 42
  • 63
0

In my case the problem was not having a proper javabin folder in the PATH variable.

Open the PATH variable and make sure it points to a proper JRE bin folder.

Jalal Sordo
  • 1,605
  • 3
  • 41
  • 68
0

Same thing happened to me.

I was using dual monitor and eclipse opened on my other screen, behind a full-screen window.

Bilow
  • 2,194
  • 1
  • 19
  • 34
0

I have fixed it by deleting the .metadata/.lock file.

sergej
  • 17,147
  • 6
  • 52
  • 89
0

In my case I did see the splash screen hanging at

loading org.eclipse.egit.ui

So I deleted everything starting with org.eclipse.egit within the eclipse\plugin folder

Eclipse splash screen hanging

Thorsten Niehues
  • 13,712
  • 22
  • 78
  • 113
0

Reinstalling eclipse (newer version) did the trick for me.

enwi
  • 67
  • 1
  • 2
  • 8
0

Seems to be rare but this happens on windows 10 where the eclipse.exe file is located in a sub-folder which has some UTF-8 folder parent

For example this :

D:\Personal\Idea\دستیار هوشمند بانکی\eclipse doesn't work while

D:\Personal\Idea\Bank AI Assistants\eclipse works.

Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
0

In my case, moving eclipse to a new fresh machine, I had wrong path of lombok.jar in eclipse.ini

check all eclipse.ini configurations

Falco
  • 1,458
  • 3
  • 19
  • 47
-1

In System Environment variables , add jdk path in the BEGINNING of the Path

enter image description here.

A W
  • 1,041
  • 11
  • 18