Play 2.8 Distribution Package issue


I have created dist .zip from ubantu vm which has Java 11
openjdk version “11.0.7” 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu219.10)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu219.10, mixed mode, sharing)

Have copied this zip and located on linux machine which has Java 8
java version “1.8.0_241”
Java™ SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot™ 64-Bit Server VM (build 25.241-b07, mixed mode)

after executing ./bin/app-2-8v1-1-1.0-SNAPSHOT getting below error

awk: can’t open /version/ {print $2}

No java installations was detected.
Please go to and download

Thank you for the help

I don’t know if it will work as you used a different version for compiling. I’ve developed some application using JDK 1.8 and 15. On my server I’ve both version and I created a script to start each one with different Java version. Something like that:

kill -9 `cat RUNNING_PID`
sleep 2
export JAVA_HOME=/opt/jdk-15
nohup bin/app -Dconfig.file=conf/application.conf -Dhttp.port=8090 -Dhttps.port=8006 -Dhttps.keyStore=keystore.jks -Dhttps.keyStorePassword=importkey &