[yocto] [meta-java] Use openjdk-8 as javac and java VM

Jens Rehsack rehsack at gmail.com
Tue Mar 29 12:37:06 PDT 2016


> Am 29.03.2016 um 12:48 schrieb Blaettler, Michael <michael.blaettler at siemens.com>:
> 
> Hi all

Hi Michael,

> I am currently struggling with selecting the Java virtual machine and Java compiler. I’d like to use the Java VM and Java Compiler provided by openjdk-8-native in the meta-java layer.
> It was possible to build openjdk-8-native without any problems but after sourcing the environment-script the javac command points to the compiler installed by ecj-bootstrap-native and the java command points to the VM installed by cacao-native.
> Afterwards I tried to add openjdk-8 as a provider for “virtual/javac-native” and “virtual/java-native” but then the image isn’t buildable due to recursive inclusions.
> 
> How can I select the java vm and java compiler from openjdk-8 as my default compiler/VM?

That's one of the larger open points in meta-java. I couldn't finish that in my time at Rademacher.
If someone wants to sponsor that :-)

> Can anybody assist me?

Meanwhile try to rely on https://github.com/rehsack/meta-jens/blob/jethro/recipes-xbmc/xbmc/xbmc_14.bb#L51 as example.

> Thanks in advance

You're welcome.

Cheers
--
Jens Rehsack - rehsack at gmail.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160329/597fe7bd/attachment.pgp>


More information about the yocto mailing list