Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 578620

Summary: The package org.eclipse.core.runtime is accessible from more than one module
Product: [Eclipse Project] JDT Reporter: Markus S <liedrig>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: blocker    
Priority: P3 CC: jjohnstn, rbnn, tjwatson
Version: 4.22   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Markus S CLA 2022-02-07 08:43:06 EST
Hi,

I'm getting all the fun of migrating the target platform of our application from Java8 / Eclipse 4.4 to Java11 / Eclipse 4.22, but I'm getting these errors all over the place:

> The package org.eclipse.core.runtime is accessible from more than one module:
> org.eclipse.core.contenttype, 
> org.eclipse.core.jobs, 
> org.eclipse.core.runtime,
> org.eclipse.equinox.common, 
> org.eclipse.equinox.preferences, 
> org.eclipse.equinox.registry

These errors are only visible via mouse-over on the corresponding imports, e.g.:
> import org.eclipse.core.runtime.IStatus;

Whereas the Eclipse error log only shows this error message:
> The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

Is this a bug? Or what am I doing wrong? Thank you.
Cheers
Comment 1 Thomas Watson CLA 2022-02-07 08:47:50 EST
(In reply to Markus S from comment #0)
> Hi,
> 
> I'm getting all the fun of migrating the target platform of our application
> from Java8 / Eclipse 4.4 to Java11 / Eclipse 4.22, but I'm getting these
> errors all over the place:
> 

Is this errors in your workspace while compiling your code or errors at runtime when running on Java 11?
Comment 2 Markus S CLA 2022-02-07 08:58:44 EST
This happens already while compiling the code
Comment 3 Thomas Watson CLA 2022-02-07 09:08:47 EST
(In reply to Markus S from comment #2)
> This happens already while compiling the code

Moving to JDT for comment.
Comment 4 Jeff Johnston CLA 2022-02-07 17:37:58 EST
Moving to core
Comment 5 Markus S CLA 2022-02-15 07:22:46 EST
I'm trying to use JDK 17 now (which I also use to start my IDE) and I get a different error now:

> Multiple markers at this line
> - The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
> - Type java.lang.String is indirectly referenced from required .class files but cannot be resolved since the declaring package java.lang exported from module java.base conflicts with a package accessible from module <unnamed>
Comment 6 Markus S CLA 2022-02-17 04:26:50 EST
I took out some plugins that came with the Eclipse 4.22 SDK and the error is gone. Still not sure if I did something wrong, but I'm good for now.
Comment 7 Rafael Nunes Neto CLA 2023-06-15 23:40:23 EDT
(In reply to Markus S from comment #6)
> I took out some plugins that came with the Eclipse 4.22 SDK and the error is
> gone. Still not sure if I did something wrong, but I'm good for now.

What were those plugins? And how did you get rid of them?