sbt / sbt-native-packager

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

Version check not working for openjdk 11 #1331

Closed yogeshbidari closed 4 years ago

yogeshbidari commented 4 years ago

I am facing similar issue as https://github.com/sbt/sbt-native-packager/issues/1145 Updated plugin sbt-native-packager version to 1.3.6, still the issue exist.

Actual behaviour

App LOG:

The java installation you have is not up to date requires at least version 1.6+, you have version 11.0.6

Please go to http://www.java.com/getjava/ and download a valid Java Runtime and install before running .

Information

dr0i commented 8 months ago

For anyone who crosses this issue: You can do sbt stage which creates the start script at ./target/universal/stage/bin/. You can execute this script and provide parameters like -Dhttp.port=$PORT -no-version-check. The -no-version-check supresses the checking of the java version (which is buggy in sbt because 11 > 1.6 ).