OpenEmbedded/Yocto Project layer for Java support

This layer provides support for Java for use with OpenEmbedded and/or
Yocto Project build systems.

This layer depends on:

URI: git://git.openembedded.org/openembedded-core
branch: krogoth (or master)
revision: HEAD

URI: git://git.openembedded.org/meta-openembedded
branch: krogoth (or master)
revision: HEAD


To contribute to this layer you should submit the patches for review to the
mailing list (openembedded-devel@lists.openembedded.org).

Please refer to:

for some useful guidelines to be followed when submitting patches.

Mailing list:


Source code:


When creating patches, please use something like:

    git format-patch -M -s --subject-prefix='meta-java][PATCH' origin

When sending patches, please use something like:

    git send-email --to openembedded-devel@lists.openembedded.org 

Main layer maintainers:

  Henning Heinold 
  Mario Domenech Goulart 
  Maxin John 
  Otavio Salvador 

Usage instructions

You should define at least the following variables in a distro include file or local.conf

# Possible provider: cacao-initial-native and jamvm-initial-native
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"

# Possible provider: cacao-native and jamvm-native
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"

# Optional since there is only one provider for now
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"

Simply rely on openjdk-7-jre, openjdk-7, openjdk-8 or openjre-8.

For conf/bblayers.conf you have to add

  path_to_source/meta-openembedded/meta-oe \
  path_to_source/sources/meta-java \

Please note that libstdc++ static is needed on your host to compile icedtea7-native
(install libstdc++-static on a Fedora).

For debian-based distributions you need the libstdc++6-$compilerversion-dev package.