Adding a java layer to yocto image

does anyone know or have any advice about how to build a java layer on the yocto image when building the linux source?
Thank you in advance to anyone willing to help.

See if this helps

Or you can see this on using java in legato application