I know this problem occurs many time, but I have find a similar situation like I have.
Every time I click the Eclipse Installer, I will get a prompt:An error has occurred, see the log file null. I can't even install Eclipse.
I guess the problem is due to "JDK 9-ea", so I am planing to uninstall jdk 9-ea and use jdk8, but maybe you can help me to solve this problem directly, thanks !
First, you need to get the correct install most probably, here is the Oxygen 4.7 M6 link : http://download.eclipse.org/eclipse/downloads/drops4/S-4.7M6-201703082000/
Or the direct link to the .tar.gz
Then (after you untar the archive), go to :
Eclipse.app/Contents/Eclipse/eclipse.ini
and add one parameter after -vmargs. It should look like this:
-vmargs
--add-modules=java.se.ee
This will allow you to start the Eclipse under jdk-9.
In case you want to install the jdk-9 plugin (so that you could compile code under jdk-9): you need to install the Experimental Plugin for jdk-9. There were some problems with that (I filed a bug that was closed), see this thread. At the end there is the link for on how to get the plugin.
Then you need to follow the exact instructions here for it to actually work.
Simply adding this line to the eclipse.ini "--add-modules=java.se.ee" will resolve the whole issue
mine is macOs and Java 9 installed alone without any other version
Hope this helps
When I was on Fedora 23, I was using Eclipse Neon to work on my school projects and it worked fine. However, I recently updated to Fedora 24, and now, for some reasons, I can't launch it anymore. Whenever I try to launch eclipse from the terminal, I bump into an error message, telling me that it can't find a java virtual machine in a specific folder (you can see the error message on the screenshot I've attached). Here is the screenshot
I looked up the mentioned folder, and noticed that some files were already installed in here. Besides, when I try to install java using the dnf command, to check if anything is missing from my installed version, the terminal tells me that the package is already installed.
Would someone have any idea how to fix this issue? I've been trying to use some solutions I found on the net, but none did work as expected.
The paths on the screenshot do not match.
You are checking files inside ...fc24.x86_64 while eclipse is looking for ...fc23.x86_64.
Update your JRE location in eclipse.ini. You can probably just remove lines:
-vm
/usr/lib/.../jre/bin
and eclipse will pick your system default JRE.
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.
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
.