Community
Participate
Working Groups
Downloading the latest Eclipse Java IDE on a Mac installing it and trying to import a Gradle project results in https://twitter.com/graemerocher/status/1313009910196699137 Trying to follow the instructions to install the legacy Java version results in https://twitter.com/graemerocher/status/1313010408463175681
Happens attempting to import a Maven project as well
Can you please elaborate how you attempt to import the project (using m2e)? Do you have some interesting content in <workspace>/.metadata/.log? Note that this error is misleading Java SE 6 is not required (it's even not compatible any more), but it's a message that sometimes erreneously shows up on Mac when trying to find the installed Java version. Hopefully, the log will lead to the actual faulty code...
Also can you please detail which Java version you're using to run the IDE? (it should be included in the .log file)
It happens with both JDK 14 and JDK 15 installed via SDKman. I recorded a video demonstrating the issue https://www.dropbox.com/s/v88l1j7vezvcy2u/Eclipse.mp4?dl=0
(In reply to Graeme Rocher from comment #4) > It happens with both JDK 14 and JDK 15 installed via SDKman. > > > I recorded a video demonstrating the issue > https://www.dropbox.com/s/v88l1j7vezvcy2u/Eclipse.mp4?dl=0 Please provide some log files. Also please try running from CLI as it could be some JVM crash, and this is logged in console usually.
from the CLI this is the output: ➜ MacOS ./eclipse WARNING: Using incubator modules: jdk.incubator.jpackage, jdk.incubator.foreign 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. org.eclipse.m2e.logback.configuration: Logback config file: /Users/graemerocher/eclipse-workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml org.eclipse.m2e.logback.configuration: Initializing logback No Java runtime present, requesting install. No errors as far as I can see. I don't see anything relevant in the "Error log" view, how do I get to logs?
If I go to "Navigate -> Open Setup Log" the same problem occurs and it exits with the Java 6 error
> No Java runtime present, requesting install. That's a hint. It seems like calling `java -version` from the IDE triggers this annoying MacOS specific pop-up. There are some articles about it here and there by copying the error message. As MacOS tends to force more and more usage of fully self-contained applications and cause troubles in cases where multiple apps want to inter-operate nicely, I suggest you install a JRE inside your IDE that will be used in place of your installed Java. Go to https://download.eclipse.org/justj/jres/15/updates/ and install a complete Java Runtime specifically for the IDE, and your OS should hopefully stop popping irrelevant warnings. I'm pretty sure there is something that can be done at OS level to allow Eclipse IDE to properly run the expected version of java, but I can't help with that.
@Sarika See this scenario, it looks like Eclipse IDE feels not much usable on macOS under some circumstances. Do you think there are opportunities to improve the story in the IDE itself (apart of embedded a Java runtime or tweaking the OS, or installing a better OS :P )?
*** This bug has been marked as a duplicate of bug 549813 ***