O'Reilly logo

Embedded Linux Projects Using Yocto Project Cookbook by Alex González

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating Java applications

The meta-java layer also offers helper classes to ease the integration of Java libraries and applications into Yocto. In this recipe, we will see an example of building a Java library using the provided classes.

Getting ready

The meta-java layer provides two main classes to help with the integration of Java applications and libraries:

  • The Java bbclass: This provides the default target directories and some auxiliary functions, namely:
    • oe_jarinstall: This installs and symlinks a JAR file
    • oe_makeclasspath: This generates a classpath string from JAR filenames
    • oe_java_simple_wrapper: This wraps your Java application in a shell script
  • The java-library bbclass: This inherits the Java bbclass and extends it to create and install ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required