I have a MacBook Pro, last year i've installed Eclipse just to try it and suddenly i've uninstalled it. Now i need it for an exam at University but i can't install it anymore..at the start it says "An error has occurred. See the log file /Users/andry_900/eclipse-workspace/.metadata/.log." but the directory /Users/andry_900/eclipse-workspace/ is empty, there's no log.
Please help me..how can i solve it?
1 Answer
You are running with Java 9. Downgrade to Java 8 for Eclipse.
-
The changes in Java 9 are small but sum up to - to my understanding - all non-trivial applications having some kind of trouble. This is unprecedented for Java but is apparently the price we need to pay for modularization so we can bundle small JRE's with our applications. It appears that we all need to let the tool "vendors" have some time to make things work in the new world. Sep 25, 2017 at 20:17
-
You don't need to downgrade to Java 8. Eclipse Oxygen.1a which will be released on October 11, 2017 will run also with Java 9 without this modifications.– howlgerSep 25, 2017 at 22:15
-
@howlger Naturally future versions of Eclipse will work. But if you cannot afford to wait more than two weeks, downgrading Java is a simple solution. Sep 25, 2017 at 22:18
-
1Adding the line
--add-modules=ALL-SYSTEMtoeclipse.iniseems to me to be the simpler and quicker solution. It is also the solution that is recommended by Eclipse itself.– howlgerSep 25, 2017 at 22:27 -
1It is non-trivial for an inexperienced programmer to apply the "just patch eclipse.ini file" fix under MacOS. That difference alone is enough to warrant a separate answer. Sep 26, 2017 at 8:22

.metadatais a hidden folder, you'll have to disable hiding hidden files and folders to see it. Or justcdthrough the command line.