Can I run an application that was built using Java 1.8 on a system with JRE 1.6?

In our public school computer environment, we are launching “Version 6 Update 31” according to java.com. I can not control when it will be updated.

My students want to create a Java application using version 8. Is there a way to create such an application that was built using Java version 8 (using Eclipse Luna) and still works on Windows version 6 of Windows?

+4
source share
5 answers

It depends on your definition of "uses version 8". If you set the target to 6 and stay within the 6th definition of the language and structure, then yes, you can create applications on the Java 8 machine to run on the Java 6 machine.

However, if you mean "use a special feature of Java 8", then no.

+1
source

You cannot do this, you can run an application compiled for java 1.6 on JRE 1.8, but this will not work in the opposite direction. You need to upgrade java to version 1.8

0
source

. , Java.

, , , , , Java8 ( JRE/JDK !). Java8, - Java8 Ideone, , , Java8.

0

eclipse , , . . Java Compiler. Java . " " "1.6" comboBox OK.

. " Java". JRE " JRE" "JavaSE1.6". , JRE 1.6.

, JRE 1.6 Java 8, , JDK7 JDK8.

-1

Source: https://habr.com/ru/post/1589222/


All Articles