error: Couldn't find component 'embeddedOracleJvm'.

This forum has moved to http://forum.legato.io

error: Couldn't find component 'embeddedOracleJvm'.

Postby hAxel » Wed Sep 07, 2016 3:34 pm

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
http://www.oracle.com/technetwork/java/ ... index.html
according to this guide:
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:
http://mangoh.io/docs/4118961_WinCLI%20 ... als_r4.pdf

Code: Select all
$ 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:

Code: Select all
$ 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?
Last edited by hAxel on Thu Sep 08, 2016 7:38 am, edited 1 time in total.
hAxel
 
Posts: 3
Joined: Wed Sep 07, 2016 8:17 am
Has thanked: 1 time
Have thanks: 0 time

Re: error: Couldn't find component 'embeddedOracleJvm'.

Postby daav » Thu Sep 08, 2016 5:49 am

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.
Developer Studio dev team

For this post the author daav
has been thanked by :
hAxel (Thu Sep 08, 2016 6:35 am)
User avatar
daav
 
Posts: 1202
Joined: Thu Oct 20, 2005 11:45 am
Location: Paris, France
Has thanked: 8 times
Have thanks: 87 times

Re: error: Couldn't find component 'embeddedOracleJvm'.

Postby hAxel » Thu Sep 08, 2016 6:07 am

Thank you so much!
I love you and the internet
hAxel
 
Posts: 3
Joined: Wed Sep 07, 2016 8:17 am
Has thanked: 1 time
Have thanks: 0 time


Return to Legato Application Framework -- MOVED TO FORUM.LEGATO.IO

Who is online

Users browsing this forum: No registered users and 3 guests