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: daisy
revision: HEAD

URI: git://git.openembedded.org/meta-openembedded
branch: daisy
revision: HEAD

Contributing
------------

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

Please refer to:
https://wiki.yoctoproject.org/wiki/Contribution_Guidelines#General_Information

for some useful guidelines to be followed when submitting patches.

Mailing list:

    http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Source code:

    git://git.yoctoproject.org/meta-java
    http://git.yoctoproject.org/git/meta-java

When creating patches, please use something like:

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

When sending patches, please use something like:

    git send-email --to openembedded-devel@lists.openembedded.org <generated patch>

Main layer maintainers:

  Henning Heinold <henning@itconsulting-heinold.de>
  Mario Domenech Goulart <mario@ossystems.com.br>
  Maxin John <maxin.john@enea.com>
  Otavio Salvador <otavio@ossystems.com.br>

Usage instructions
------------------

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

PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"

PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"

#For openjdk6:
#PREFERRED_VERSION_openjdk-6-jre = "6b24-1.11.9"
#or
#PREFERRED_VERSION_openjdk-6-jre = "6b27-1.12.8"
#or
PREFERRED_VERSION_openjdk-6-jre = "6b32-1.13.4"
PREFERRED_VERSION_icedtea6-native = "1.8.11"

#For openjdk7:
PREFERRED_VERSION_openjdk-7-jre = "75b13-2.5.4"
PREFERRED_VERSION_icedtea7-native = "2.1.3"

#Sometimes the following is needed:
PREFERRED_PROVIDER_openjdk-6-jre = "openjdk-6-jre"
PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"

For conf/bblayers.conf you have to add

BBLAYERS ?= " \
   ...
  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 icedtea6/7-native
(install libstdc++-static on a Fedora).

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