# Adding a java layer to yocto image

**URL:** <https://forum.legato.io/t/adding-a-java-layer-to-yocto-image/5948>\
**Category:** Uncategorized\
**Created:** [August 29, 2021, 3:45am UTC](https://forum.legato.io/t/adding-a-java-layer-to-yocto-image/5948 "2021-08-29T03:45:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 29, 2021, 3:45am UTC](https://forum.legato.io/t/adding-a-java-layer-to-yocto-image/5948/1 "2021-08-29T03:45:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 29, 2021, 9:46am UTC](https://forum.legato.io/t/adding-a-java-layer-to-yocto-image/5948/2 "2021-08-29T09:46:23Z")

</div>

See if this helps

> **[How to add openjdk to Yocto Layers](https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-add-openjdk-to-Yocto-Layers/ta-p/1128283)**
>
>          This document will describe how to add open JDK to i.MX yocto BSP. It will take two versions of Linux BSP as an example, one is the lower version of L4.1.15-2.0.0, the other is the latest version of...

Or you can see this on using java in legato application

> [@Procedure to create and compile javaHelloWorld](https://forum.legato.io/t/procedure-to-create-and-compile-javahelloworld/3387):
>
> Configuration: Developer Studio 5.3.1 / Linux WP77 R9 (18.3.0.wp77xx-native-x86\_64-201806051023) Prepare your host Follow this procedure: [https://source.sierrawireless.com/resources/airprime/software/legato\_application\_development\_kit\_linux/](https://source.sierrawireless.com/resources/airprime/software/legato_application_development_kit_linux/) especially the dedicated step: If you plan to develop Legato applications with Java language Then: on host: sudo get-install ant Retrieve the embedded JVM for the test, I used ejdk-8u171-linux-arm-sflt.tar.gz then unzip to a local folder …
