From java jar file how to create snap of that for ubuntu core 16

I have a java jar file for reading file now I want to create snap of that jar and install in ubuntu core.
Is there any tutorial regarding that to learn how to build and install.

Have you seen this documentation for snapping java apps? https://docs.snapcraft.io/java-applications/7819

Does it help?

The above link explains only concept but how to implement. How to add jre/jdk to the snap. Is there any simple tutorial.

Ah, sorry.

You can stage java in the snap with a stage-packages entry for the relevant jdk package from the archive. openjdk-8-jre-headless for example.