I am using jdk 10, windows 8 and eclipse 2019 which I used to make my jar file. I want to make a custom jre using the jlink tool, I am countering a problem that jlink is not able to detect my jar file that is made from eclipse. However, I have already installed too many java versions, this is my command :
"C:\Program Files\Java\jdk-10.0.2\bin\jlink.exe" --module-path "C:\Users\Hassan\Desktop\test_java.jar";"C:\Program Files\Java\jdk-10.0.2\jmods" --add-modules test_java --output \Test2\JRE --compress=2
and it returns :
Error: Module test_java is not found.
I am sure that the path is correct. I don't know what is happening, I wrote the command correctly along with their paths.