sbt / sbt-native-packager

sbt Native Packager
https://sbt-native-packager.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
1.59k stars 438 forks source link

The bash script for Ubuntu doesn't seem to have include a given java-home #1601

Open luukjansen opened 2 months ago

luukjansen commented 2 months ago

Expected behaviour

When generating the debian package with "debian:packageBin" to have the $JAVA_HOME set when it is not the system default. In build.sbt file I have:

    Universal / javaOptions ++= Seq(
      "-java-home /usr/lib/jvm/java-17-openjdk-amd64"
    )

Actual behaviour

No sign of the provided java home option, the system uses the system default.

Information