I am Working on a javafx project where i am in need to generate module-info.class file myself. So, Iam wondering how to do it properly and make it work with maven.
Iam facing this issue with a QRCode generator library zxing. I cannot find any alternative Qr generator libraries in java with module-info.class file , if any please mention it.
I have to do this, since i use jlink which throws "automatic module cannot be used with jlink" error.
breif explanation would be very helpful :)
note: I have tried to inject the module file using a tool but it throws error: cannot read jar
jdeps(see this); (2) Compile the module-info source file withjavac(see this); (3) Add the module-info class file to the JAR file withjar.module-info.javafile to the root of your source folder (i.e. with no package), and include it in compilation. When using Maven, just put it directly insrc/main/java. If you're using Java 8 then Moditect works great. I'm using it in my Java 8 libraries without any problems.