Eclipse does not start when I run the exe? - java

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.

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!

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

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

go to : "C:\workspace.metadata.plugins\org.eclipse.e4.workbench"
if already you save backup file "workbench.xmi" replace it else delete this.

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!

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.

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!

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.

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

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

Press Win key + X
click 'System' link from popup menu
click advance setting link (Left panel) in opened 'System setting' window (Control Panel\System and Security\System)
Now a window named 'System property' will be open, select 'advance' tab and click on environmental variables
Select path variable from 'System Variable' list section. and click edit
click new button on newly opened window and paste your Jre folder link(Jre in JDK) click okey , okey , okey
re run your program :p

re install your java. First check your OS version.

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.

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!

Try to install Eclipse into a folder without spaces.

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.

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

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.

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.

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.

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.

Same thing happened to me.
I was using dual monitor and eclipse opened on my other screen, behind a full-screen window.

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

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

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

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.

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

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

Related

Eclipse installer not showing any packages

When trying to install eclipse, when I run the installer I just get a blank box with no packages to select. Image Link
Any idea on how I could fix it, I have my java environment variable and java_home both set to the \bin location for both my java installations. The versions of java I currently am using are jdk 8 and I got jdk 16 to see if that might fix the issue but it didn't. As well, there weren't any errors or anything it just shows the empty box and shows that there's an update but I'm not sure what it's trying to update. Any idea how I could fix it?
Solution that worked for me:
Ok so after some fiddling around I had to search "eclipse" in the search all bar in windows. Then after some scrolling I was able to find the file "eclipse-isnt.exe" and after running that it showed the stuff to download and solved my problem. The "eclipse-isnt.exe" ended up being located in "C:/Users/(user)/AppData/Local/Temp/(random temp file)/eclipse-inst.exe".
Hope this helps out
Also running the file as administrator worked

Windows JDK no compiler error - Already tried PATH, installed/reinstalled x64 and x86. What's going on?

I've spent about 10 hours on this already and tried and retried solutions I found on the net, but I'm not finding any new solutions, and getting no where with the ones I've tried. Could you assist?
Background:
I'm new to dev environments like this, so there could be something simple I missed. I'm trying to learn to create Alexa Skills and compile a set of sample files with Maven:
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/deploying-a-sample-skill-to-aws-lambda
And I'm running this through:
mvn assembly:assembly -DdescriptorId=jar-with-dependencies package
I'm on Windows 7 Pro x64. I installed jdk-8u60-windows-x64.exe.
Using windows CMD (would be happy for suggestions on a better terminal though!)
Not running Eclipse.
C: is root, but I installed the JDK to E:\Program Files\Java\jdk1.8...
I setup JAVA HOME - to the root directory - E:\Program Files\Java\jdk1.8...
I setup PATH with \bin; added to the front. Note: There was already a path in there for \oracle\java, but I tried with and without that with no change.
I setup maven with M2 and M2_Home.
After all that, I still got the compiler not associated issue. So I tried a bunch of stuff:
Uninstalled everything and reinstalled everything (x64) with "Run as
Administrator."
Put all PATH and _HOME values in User and System Settings.
Uninstalled everything, reinstall everything as Admin, but x86 this
time.
Repeat Path and _Home steps with new Program Files(x86) location.
For every PATH and _HOME I also tried Progra~1, Progra~2 instead of
"Program Files".
Nothing worked.
I still get the error no compiler associated. There is no Javac.exe in my bin after any install either.
And I have a lot less hair now. Any help would be great.
Finally got it working. Nothing new. Reinstall, that's it, but with a difference. I re-installed the JRE in a different location from the JDK. Probably noobie mistake(?). When I first installed the JDK, I didn't have the JRE. The JDK installer also auto-installed the JRE, but first asked me where to put it. This screen doesn't specifically reference JRE apart from JDK. And me, not really understanding the difference between the two, nor the need for another install location, just used the same folder. That was probly the issue, because now it's working perfectly. Thank you all.

Error message displayed when opening Eclipse: "An error has occurred. See the log file null"

I use Windows 10 and jre1.8.0_51. I don't know why when I start Eclipse it always displays an alert message "An error has occurred. See the log file null."
And I cannot open Eclipse thereafter. I tried to search Google and have no best solution. I uninstalled JRE and installed it again, but it still produces the same problem.
Try to launch it from the console like:
C:\path\to\eclipse\eclipse -clean
Also you try to can delete the file to fix the problem permanently as suggested here. Command would be something like below for windows.
del YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.snap
I ran into the same problem. When I try running eclipse as Administrator, the problem went away.
Had same issue.
To resolve it : Go to Eclipse directory -> Open CMD -> eclipse -clean
worked well.
I had the same issue with Windows 10. Give full control to your user in security settings on the eclipse and workspace folders.
I also found the read only property was set on the eclipse and workspace folders, which I unset.
The log file can be found in the eclipse\configuration folder.
I deleted .metadata from the workspace and ran the eclipse as run as administrator and it worked for me.
I found that running Eclipse (STS 3.9) as administrator worked, which is a permissions issue. Giving the required users read/write/execute permissions to the config and workspace folders did the trick (they couldn't write previously).
I too came across the same error.
My log file says :
Java.io.FileNotFoundException: C:\Eclipse\eclipse-jee-luna-SR2-win32-x86_64\eclipse\configuration\org.eclipse.osgi.manager.fileTableLock (Access is denied)
So, i copied entire eclipse in another folder and it worked for me.
So, for me the problem was write access, because eclipse need write across configuration folder, in my case eclipse was unzipped by some other user and i didn't have the access.
I encountered the same problem, and then I found out that, the eclipse distribution works fine with JDK 8. I previously ran JDK 10 and I got this error. Uninstalling JDK 10 and installing JDK 8 fixed the issue for me.
Hope this helps!!
Make sure your eclipse launch folder does not have read only property/attribute
My eclipse resides at below location and If I right click ->properties- checked attributes were read only. I unchecked read only and restarted eclipse. Issue was resolved.
C:\Users\Ashish\Downloads\eclipse-jee-mars-2-win32-x86_64 (1)\eclipse
Here I'm just share, if you can not copy file .metadata on mac because that file invisible (JUST on Mac issue), try this step:
compress your file .metadata backup
copy file .zip
paste file .zip to path/workspace
double click file .zip
done :-)
Open the eclipse.exe with the right mouse button and open with admin rights and that's it!
I had the same problem and deleting the file .metadata/.plugins/org.eclipse.core.resources/.snap and try it should work
Uninstall Java JDK
Reinstall JDK 8
Run Eclipse as administrator
Remove the .snap file from <WORKSPACE-DIRECTORY>\.metadata\.plugins\org.eclipse.core.resources
The mentioned solutions didn't work for me under Windows OS.
I just deleted .manager from eclipse\configuration\org.eclipse.core.runtime and from eclipse\configuration\org.eclipse.osgi and the issue was fixed.
Delete the .metadata folder in eclipse. That should resolve the issue. The .metadata folder is recreated by eclipse once it is able to launch successfully.
I too got the same error in My Windows 10 pc while using Eclipse 2020 version
Just delete the .metadata folder and then try to run eclipse again it will solve the problem and run fine. .Metadata folder will get created once again by itself as we open eclipse.
I uninstalled JRE and installed it again, but it still produces the same problem.
Turns out that my version of eclipse doesn't work with jdk17 (installed it using Amazon Corretto 17). So uninstalled Amazon Corretto 17 (automatically uninstalls jdk17 as well) and installed jdk11 using Amazon Corretto 11.
Thankfully worked for me! What I tried was similar to what you tried, but worth trying anyway.
Re-install Eclipse or add vm path in your eclipse.ini file.
-vm
C:/<Your Path>/jdk1.8.0/jre/bin/javaw.exe
Note: Change javaw.exe path according to your system
Make sure your java version is compatible with your eclipse version!
An easy solution that worked for me. Deleting the .metadata did not result. I was using eclipse MARS 2.0 but set my JAVA_HOME to java 17. However, Mars does not support java 17. As soon as I swapped it back to java 14 eclipse launched again.

Eclipse doesn't start in Ubuntu 14.04

I have a problem trying to launch Eclipse in Ubuntu 14.04. Splash picture pops up, then blinks, turns white - and nothing happens until kingdom come.
I have tried Luna, Kepler and 3.8 (from Ubuntu repository). EE and SE editions - both the same. I have also tried to launch them with different (oracle) vm - 1.7 and 1.8.
And yes, I have tried the -clean and simple workspace removal.
This is the only thing it says in console:
org.eclipse.m2e.logback.configuration: The
org.eclipse.m2e.logback.configuration bundle was activated before the
state location was initialized. Will retry after the state location
is initialized.
Java VM works fine - I can launch (for example) IDEA or java\javac commands.
Any suggestions?
The answer is already here, but it's in the comments. So I re-post it as answer:
check your 2nd screen. Workspace dialogue may be there.
Try this:
1) Remove .snap from:
.metadata\.plugins\org.eclipse.core.resources\.projects\<project>\.markers.snap
If you can't find it manually try this:
find /.metadata/.plugins/org.eclipse.core.resources/.projects -name "*.snap" -exec rm -f {} \;
It Generally happen when eclipse is closed unexpectedly.
Heres things you can do.!
1)Save and Delete .metadata from workspace folder.
2) Try Re-installing Eclipse.
This solution worked for me. :)
If you don't have any pending changes and have pushed your project already on your repo, you can also try deleting the project folder where eclipse opens a project path automatically.
When you run eclipse again, it will work again.
Unfortunately, deleting metadata didnt work for me. Also I don't have any extra monitor so deleting my project folder was my last resort.

An error has occured. Please see log file - eclipse juno

Whenever I start up Eclipse Juno, it gives me an error saying:
An error had occured. Please see the log file:
C:\Program Files\eclipse\configuration\1362989254411.log.
Some websites say to uninstall jdk and install it back again. I did that, but it didn't work. I think it was because on their website, the error is happening IN the workspace. Mine is on the program files folder, which is in the computer.
It happened after updating it. Should I downgrade. If so, how? If I can't downgrade, what should I do?
Try deleting following file from workspace.
YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.snap
Or try launching it from console.
C:\path\to\eclipse\eclipse -clean
Solved :
Quit eclipse
GO to your workspace and delete .metadata folder
Now open eclipse with same Workspace path ( You will see as a new workspace )
Now right click import > General > Existing Projects into Workspace > next > Select root directory -> browse to your current workspace and press OK.
Now you will all see your all projects and then hit OK again.
Voila, same projects with same workspace no migration or reference problem.
After trying everything else, this solves my issue.
Delete the .metadata folder from workspace and start the eclipse and now again import all project in same workspace, this worked for me.
In my mac machine, I checked whether I installed two java versions or not. I got this error. Because i installed two java at a time.
User -> Library -> Java -> JavaVirtualMachines -> version 1.8.0 and version 11.0.1 has been installed.
I removed version 11.0.1. Now its working fine.
I deleted the entire .metadata folder, and it worked for me.
The best way is to delete all the *.snap files from /.metadata/.plugins/
Here's what I did to solve this:
I removed workspace/.metadata
run eclipse as an administrator.
In my case my JAVA_HOME was pointed to jdk9 after pointing JAVA_HOME to jdk8 resolved my issue.
Hope it helps someone.
i found the solution. i have installed 2 versions of jre sdk 1.3 and jre7 so i uninstall the older version sdk1.3 then it works.
C:\path\to\eclipse\eclipse -clean
Then change the working project directory to something different. It should work after that.
This instruction works 100% for me:
Rename the Eclipse workspace name
Start Eclipse (it will start successfully with empty workspace)
Exit it and change workspace name to previous state(if ask to replace some files, press no)
Start Eclipse again and Re import projects in current workspace
Enjoy!
Sounds simple but just delete/uninstall eclipse and install it again.
I was getting the same error while opening the eclipse. to solve that I checked the log file inside the metadata folder. where I found that there is version mismatch of Java. so I have changed the VM inside my eclipse ini file.
-vm
/opt/jdk1.8.0_191/jre/bin
Hope this will also help to solve your problem.
For me it was down to a locking/permissions bug on
(path to Eclipse IDE)\configuration\org.eclipse.osgi.manager.fileTableLock
See here
Spring Tool Suite 4 (64 bit for Windows Server 2016)
Version: 4.2.2.RELEASE
Build Id: 201905232009
based on Eclipse
Version: 2.2.500.v20190307-0500
Build id: I20190307-0500
wouldn't launch and a pop up dialog appeared saying:
launch error has occurred see log file null
(This became apparent from the latest text log file in the folder
(path to Eclipse IDE)\configuration)
!ENTRY org.eclipse.osgi 4 0
2019-06-19 18:41:10.408
!MESSAGE Error reading configuration: C:\opt\sts-4.2.2.RELEASE\configuration\org.eclipse.osgi\.manager\.fileTableLock (Access is denied)
!STACK 0
java.io.FileNotFoundException: C:\opt\sts-4.2.2.RELEASE\configuration\org.eclipse.osgi\.manager\.fileTableLock (Access is denied)
...
I had to go and tweak the permissions via File Explorer (Full access).
It appeared as if the IDE was doing nothing for a while.
The splash screen for Spring Tool Suite (based on Eclipse) eventually disappeared and the IDE started up again.
Now everything is back working correctly again.
None of the current answers worked for me. On CentOS, I had to delete the .eclipse folder from home directory. Then eclipse launched just fine!
I got the same error when I was using Texas Instrument's Code Composer Studio which is built on eclipse. It happened when I changed my Workspace folder to be inside the Google Drive folder. Deleting files from YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/ did not work for me.
The following worked for me:
Take backup of original Workspace folder
Delete the original Workspace (from the Google Drive folder)
Start Eclipse (works fine now)
Restore the Workspace backup to a non Google Drive folder
However deleting and restoring the Workspace folder is not advisable since it can have other complications. But I was desperate.
I had 2 version of JDK installed - JDK 7 and JDK 8. Initially it worked even when both the versions were there and was able to use Git and Gradle and up the Spring Boot Application.
Then after system restart/sleep, workspace prompt did not come up.
Uninstalled JDK 7 and it prompts for workspace,now.
I have got the same error after removing eclipse and installing it again.
Deleting the .metadata directory and running eclipse -clean does not work for me, but the following works for me:
sudo cp /usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86_64/
if you have a 32 bits based system do:
sudo cp /usr/lib/jni/libswt-*3740.so ~/.swt/lib/linux/x86/
In my case I didn't want to remove eclipse because in corporate world we can't control everything. Also deleting some files from workspace .matadata could not help. So below hack that I found with trial and error worked for me perfectly :
Go to this path: C:\....\eclipse-Luna\configuration\org.eclipse.core.runtime\
now delete .manager completely.
Start eclipse again and woilaa.. it will run normally.
[In my case, I use eclipse luna. I once abruptly closed the PC when eclipse was open. Then eclipse was not able to start on the next system restart. So keep in mind to close eclipse properly. :) ]
My OS architecture is 64-bit so downloaded Eclipse Oxygen 64-bit version and got this error. Tried various solutions posted here but didn't help. Then downloaded Eclipse Oxygen 32-bit version and it works well.
For me the problem was that I installed Java sdk 1.9 before installing eclipse. deleting it and installing Java sdk 1.8 instead fixed it.
Also, if you are using mac, try
export JAVA_HOME=$(/usr/libexec/java_home)
and then
echo $JAVA_HOME
your should get something like
/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
For STS on MacOS, i followed the following steps:
Go to the STS directory from terminal:
cd /Users/karan.verma/Documents/sts-bundle/STS.app/Contents/MacOS
Start STS
./STS
STS started, but all my imported projects were removed.
The reason may be that you are trying to use old version of Eclipse for new version of Java. I've downloaded the latest Eclipse (which is Oxygen) and it worked for me.
It worked for me when I went to WorkSpace\.metadata\.plugins\org.eclipse.e4.workbench and then remove the *.xmi files.
Deleting metadata folder might not work in this case. Or eclipse -clean command. Or reinstall eclipse might not solve this.
Instead try deleting other java versions you might have in your machine.
Check what you have right now using this:
/usr/libexec/java_home -V
Delete other java versions which you don't want, following below command:
sudo rm -rf /System/Library/Java/JavaVirtualMachines/java-version.jdk
This should resolve your issue.
The issue is due to the availability of more than one eclipse versions. I tried removing both installations and started with a clean install and it worked. Also, make sure after the install point to a new workspace.
In my case, error was due to Java 14 , which is not an LTS, downgraded it to java 8 and it worked.
It happened to me after I rename the file folder. I Try to delete my workspace or .metadata or .manager folder, and not work.
Then I download the program again and I choose the complete download. It is 337.511 KB and in zip File. But I place it in Flashdisk. I open the zipfile then I run eclipse.exe. It work. Then I import all my work file. It work back again show in Project Explorer.
I close eclipse. Then I click eclipse icon in desktop ( I didn't delete the program). Now It work fine.
If nothing works, then try uninstalling and then reinstalling Eclipse.
This is how i just fixed this problem after trying everything suggested on this forum.

Categories