# Error: Couldn't find component 'embeddedOracleJvm'

**URL:** <https://forum.legato.io/t/error-couldnt-find-component-embeddedoraclejvm/253>\
**Category:** Legato Application Framework\
**Created:** [September 7, 2016, 3:34pm UTC](https://forum.legato.io/t/error-couldnt-find-component-embeddedoraclejvm/253 "2016-09-07T15:34:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hAxel](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@hAxel](https://forum.legato.io/u/hAxel)\
**Post date:** [September 7, 2016, 3:34pm UTC](https://forum.legato.io/t/error-couldnt-find-component-embeddedoraclejvm/253/1 "2016-09-07T15:34:19Z")

</div>

Hi

I’ve been trying to get the legato java hello world example running all afternoon. It seems it can’t find EJDK. I want to run it on a mangOH device so I download the ARM v6/v7 Linux EJDK from this page  
[oracle.com/technetwork/java/ … index.html](http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html)  
according to this guide:  
[legato.io/legato-docs/latest/javaBuild.html](http://legato.io/legato-docs/latest/javaBuild.html)  
I’m using a windows machine and the Legato Ubuntu virtual machine that was recommended for the mangOH setup in this document:  
[mangoh.io/docs/4118961\_WinCLI%20 … als\_r4.pdf](http://mangoh.io/docs/4118961_WinCLI%20mangOH%20Green%20Fundamentals_r4.pdf)

`$ mkapp -v -t wp85 javaHelloWorld.adef
Env var 'EJDK_DIR=/home/legato/Downloads/ejdk1.8.0_101/linux_armv6_vfp_hflt/compact1' became 'XDG_VTNR=7'.
Environment variables are different this time.
Parsing file: '/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/apps/javaHelloWorld2/javaHelloWorld.adef'.
Modelling application: 'javaHelloWorld'
  defined in: '/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/apps/javaHelloWorld2/javaHelloWorld.adef'
Application 'javaHelloWorld' contains executable 'helloWorld'.
Parsing file: '/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/apps/javaHelloWorld2/javaHelloComponent/Component.cdef'.
Modelling component: 'javaHelloComponent'
  found at: '/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/apps/javaHelloWorld2/javaHelloComponent'
** ERROR:
/home/legato/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/apps/javaHelloWorld2/javaHelloComponent/Component.cdef:11:8: error: Couldn't find component 'embeddedOracleJvm'.`

I’ve set up the the environment variables in my .bash\_profile according to the instructions:

`$ echo $JAVA_HOME
/usr/lib/jvm/java-1.8.0-openjdk-amd64
$ echo $EJDK_DIR 
/home/legato/Downloads/ejdk1.8.0_101/linux_armv6_vfp_hflt/compact1
legato@legato-VirtualBox:~/legato/packages/legato.framework.16.4.0.I201606090927/resources/legato/apps/javaHelloWorld2$ `

I’m sorry for the wall of text but I wanted to get in all the relevant information.  
Has anyone experienced anything similar?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [September 8, 2016, 5:49am UTC](https://forum.legato.io/t/error-couldnt-find-component-embeddedoraclejvm/253/2 "2016-09-08T05:49:16Z")

</div>

This embeddedOracleJvm component is provided by the framework itself.  
To make it reachable by mkapp, you need to add the -s ${LEGATO\_ROOT}/components option to your command line.

---

<div class="post-metadata">

**Author:** ![hAxel](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@hAxel](https://forum.legato.io/u/hAxel)\
**Post date:** [September 8, 2016, 6:07am UTC](https://forum.legato.io/t/error-couldnt-find-component-embeddedoraclejvm/253/3 "2016-09-08T06:07:47Z")

</div>

Thank you so much!  
I love you and the internet
