Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » The packagexxx is accessible from more than one module: <unnamed>
The packagexxx is accessible from more than one module: <unnamed> [message #1849273] Tue, 11 January 2022 03:00 Go to next message
meng qingchen is currently offline meng qingchenFriend
Messages: 1
Registered: January 2022
Junior Member
Eclipse RCP 2020-09 , Java JDK 11 , Window10

Step

1 . Create A Plugin Project

2 . Require-Bundle: org.eclipse.jdt.core

3 . Create A Java File

import javax.lang.model.type.NullType;

public class A {

public static void main(String[] args) {
NullType type ;
}

}

Compilation error : The package javax.lang.model.type is accessible from more than one module: <unnamed>, java.compiler

Delete Require-Bundle , Compilation success

It seems that there is a conflict between org.eclipse.jdt.core and javax.lang.model

Why? How can I solve this problem ? Help me , please !
Re: The packagexxx is accessible from more than one module: <unnamed> [message #1849276 is a reply to message #1849273] Tue, 11 January 2022 07:01 Go to previous message
Jay Arthanareeswaran is currently offline Jay ArthanareeswaranFriend
Messages: 134
Registered: July 2009
Senior Member
Are you open to trying newer versions of Eclipse? I just tried it with 2021-09 and don't see the problem. I think there were some bug fixes in this area and the issue might have been fixed. So, I suggest you grab a new version of Eclipse and try it out.

[Updated on: Tue, 11 January 2022 07:32]

Report message to a moderator

Previous Topic:Suddenly all breakpoints silently fail
Next Topic:Editor window flickers
Goto Forum:
  


Current Time: Thu Sep 26 11:44:17 GMT 2024

Powered by FUDForum. Page generated in 0.03530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top