Eclipse hangs on loading workbench

后端 未结 22 1201
滥情空心
滥情空心 2020-12-04 05:43

My eclipse stops loading workbench. I tried already starting with ./eclipse --clean

When starting from console it throws following exception:

java.lang         


        
相关标签:
22条回答
  • 2020-12-04 05:50

    Here's a less destructive method that worked for me:

    I'm on Windows machine with a copy of Spring Tool Suite (an extension of Eclipse) which I'm running from a random directory. In my command line prompt, I had to navigate to the directory which contained my STS.exe and run: STS.exe -refresh.

    After that, I could open my Eclipse the normal way (which was through a pinned taskbar icon).

    0 讨论(0)
  • 2020-12-04 05:53
    ./eclipse -clean -refresh
    

    as mentioned in comment by sulai Dec 20 '12 at 12:46, that worked for me.

    However, on the Mac OS X, I had to figure out how to get to ./eclipse

    Here's the solution:

    cd Eclipse.app/Contents/MacOS/
    

    Thank you Andrew's comment for this post: https://stackoverflow.com/a/1783448/2162226

    0 讨论(0)
  • 2020-12-04 05:53

    The best solution I found is to delete this file: workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench

    0 讨论(0)
  • 2020-12-04 05:54

    DISCLAIMER: THIS WILL DELETE ALL OF YOUR ECLIPSE WORKSPACE SETTINGS AND YOU WILL HAVE TO RE-IMPORT ALL YOUR PROJECTS, THERE ARE LESS DESTRUCTIVE ANSWERS HERE

    Try the following:

    1. Delete the .metadata folder in your local workspace (this is what worked for me). It seems that it contains a .LOCK file that if not properly closed, prevents eclipse from starting properly. On Unix based systems you can type following on command line;

      rm -r workspace/.metadata
      
    2. Delete your .eclipse directory in your home directory. Launch eclipse. If that doesn't work,

    3. Open eclipse under another user account. If it loads, you know the problem is with your account, not your eclipse installation.

    0 讨论(0)
  • 2020-12-04 05:55

    The trouble with deleting files in .metadata directory is that you would have to start your workbench from scratch. So, it might take awhile to restore all your projects, especially if you have a number of them. Restoring .metadata from a backup just by replacing the existing files with the old backed up ones worked for me.

    0 讨论(0)
  • 2020-12-04 05:57

    Looks like you are possibly having this issue:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=357199

    0 讨论(0)
提交回复
热议问题