Skip to Main Content

Java Programming

Can't get dependency modules using jdeps

User_HHXXASep 14 2022

Hi,
I have a java program which uses jsoup and flying saucer. I want to get the minimum modules that are needed to create a custom JRE using jlink. I tried to get the details of the modules using jdeps but jdeps only returning the standard java modules( ex : java.base, java.logging etc..) and returning not found for the classes used from jsoup and flying saucer.
I tried linking classpath with this command :
jdeps -cp '<path to lib files>/lib/*' -s -recursive myJar.jar
Still getting same output. It is just a CLI project and not used maven. Can someone let me know how to get the module details to create the minimum JRE.
Thanks,

Comments
Post Details
Added on Sep 14 2022
0 comments
33 views