Skip to content

Java Development Guide

Endi S. Dewata edited this page Dec 1, 2022 · 3 revisions

Java Dependency

Java dependency is defined in jss.spec:

%define java_devel java-17-openjdk-devel
%define java_headless java-17-openjdk-headless
%define java_home %{_jvmdir}/jre-17-openjdk

Configuring Java Source and Target Versions in CMake

Java source and target versions are hard-coded in cmake/Java.cmake:

COMMAND ${Java_JAVAC_EXECUTABLE}
    ...
    -source 17
    -target 17
    ...

Configuring Java Source and Target Versions in Maven

Java source and target versions are hard-coded in base/pom.xml:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.8.1</version>
    <configuration>
        <source>17</source>
        <target>17</target>
        ....
    </configuration>
</plugin>