| Summary: | java.lang.module.FindException when running a modular project configured by gradle | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Nir Lisker <nlisker> | ||||
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
| Status: | CLOSED INVALID | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 4.22 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 10 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
User error: lombok should be defined with 'requires static' in module-info.java because it is not needed during runtime, which is why it built fine but didn't run. How it worked directly from Gradle I'm not sure of. |
Created attachment 288081 [details] test project Attached a sample project configured by gradle. When it is run from gradle, there is no issue. When it is run from Eclipse by right-click on the main method and running as Java application, the following error occurs: Error occurred during initialization of boot layer java.lang.module.FindException: Module lombok not found, required by test