Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » ECJ cannot normally recognize the module info of the multi release jar
ECJ cannot normally recognize the module info of the multi release jar [message #1847043] Wed, 13 October 2021 04:39 Go to next message
Glavo Glacial is currently offline Glavo GlacialFriend
Messages: 1
Registered: October 2021
Junior Member
Some modular jars put module-info.jar in META-INF/versions/9 and mark the jar as multi release jar, e.g. jetbrains java annotations 21.0.1.

For such jars, ECJ cannot recognize the module information in them, which will lead to such compilation errors:

1. ERROR in D:\Projects\kala-projects\kala-common\kala-base\src\main\java\module-info.java (at line 2)
requires static org.jetbrains.annotations;
^^^^^^^^^^^^^^^^^^^^^^^^^
org.jetbrains.annotations cannot be resolved to a module
Re: ECJ cannot normally recognize the module info of the multi release jar [message #1847194 is a reply to message #1847043] Tue, 19 October 2021 05:09 Go to previous message
Jay Arthanareeswaran is currently offline Jay ArthanareeswaranFriend
Messages: 128
Registered: July 2009
Senior Member
if other classes are recognized as per their release but not the module-info jars, then it could be a bug. If you can confirm, then you may want to raise a bug so the team can look into this.
Previous Topic:long project name because of git repo
Next Topic:Delete... does not delete fully?
Goto Forum:
  


Current Time: Fri Apr 26 15:49:55 GMT 2024

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

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

Back to the top