How to read the hdf5 format file by calling the Sentinel-3 Toolbox interface in java?

I have downloaded and installed Sentinel-3 Toolbox .I want to read the hdf4 format files in my own java program, but I do not know which packages(jar) to introduce and call the methods ?

Thank you very much for any help!

You can find several examples in this github repository. Probably you are most interested in the snap-engine-examples.
Also this developer guide might be of interest for you.
Which modules you will need on your class path depends on the data. Probably it is sufficient to have snap-core and snap-netcdf, maybe you also need seadas-reader.
This recent discussion will help you too.

Thank you very much!