Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
370 views