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 fileoe_makeclasspath
: This generates a classpath string from JAR filenamesoe_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 ...
Get Embedded Linux for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.