I have two web applications. One is Java based big enterprise application which requires java 8. Second is a tiny Scala+Play-based standalone http server which requires java version <= 1.7.0_21
I have jdk 1.7.0_21 with some additional libraries located in $JAVA_HOME/jre/lib/ext
. Is there some way to build second application with embedded jdk and additional jdk libraries? The goal is to install only java 8 on production server and deploy second application without installation java 7 itself. Is it possible?
Have you though of using docker
and have the Play application run inside a container?
https://github.com/marcuslonnberg/sbt-docker supplies allready a lot of functionality out of the box for this.
Is there a reason to not use Java 8 to run your Play application? As far as I know, Java is backward compatible , meaning that you can build your app with Java 7 and run it with Java 8.
So, give it a try and see if everything works as expected. If so, I won't need to manage the complexity of bundling JDK 7 with your Play application.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.