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.
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 JAR files