-
Notifications
You must be signed in to change notification settings - Fork 381
Description
Hi @nguyenq,
I'm currently using tess4j in a modular Java project and encountered issues because tess4j lacks a module descriptor (module-info.java). Without it, I’m unable to include tess4j as a module in my project, which leads to errors such as error: Modul not found: tess4j requires tess4j;.
Proposed Solution:
Could you please consider adding modularization support for tess4j by including a module-info.java file? This would allow projects using the Java module system to include tess4j seamlessly as a required module.
An example of the required module descriptor might look like:
module tess4j {
requires java.base;
requires java.desktop;
// Add any other necessary dependencies
exports net.sourceforge.tess4j; // Export your main package(s)
}
Benefits:
- Supports Java projects using the module system.
- Improves integration with modularized applications and modern Java practices.
Thank you for considering this enhancement. Modularization would greatly improve compatibility and ease of use for Java developers working with the module system.