Forum Stats

  • 3,853,257 Users
  • 2,264,198 Discussions
  • 7,905,296 Comments

Discussions

Can't get dependency modules using jdeps

User_HHXXA
User_HHXXA Member Posts: 1 Green Ribbon

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,