i have a project to run in jre 1.7
. however, i have jre 1.8
installed on my machine and is configured on Eclipse
.
Is there a way to tell jre 1.8
to restrict itself to jre 1.7
-- and thus give compile-time errors on lambda expressions, etc, all the additional features of Java 8? is there a way of doing this without explicitly installing Java 7 on my disk?
EDIT
Configuring the Java version isn't making it. I also tried specifying the Java version in pom.xml
.
EDIT 2
installed Java 7 already- the best way i guess. thx for the comments.