Standalone play application with embedded java
<p>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 &lt;= 1.7.0_21</p>

<p>I have jdk 1.7.0_21 with some additional libraries located in <code>$JAVA_HOME/jre/lib/ext</code>. 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?</p>