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

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.