restin84
restin84

Reputation: 115

What jre is required for an application written in java 1.7?

I have a project for school written with jdk 1.7. This application will be distributed to other groups and we want to document the necessary user system requirements. I'm assuming that the user will need the jre corresponding to jdk 1.7. Is this correct? Or what is the best recommendation for the user? The latest jre version?

Upvotes: 2

Views: 597

Answers (4)

manuell
manuell

Reputation: 7620

Note that if you use the -target and/or the -source options to javac, you may be able to compile with a recent JDK and run with an older JRE.

Upvotes: 0

Bosko Mijin
Bosko Mijin

Reputation: 3347

JRE 1.7 version.

If you want to target, let's say, a Java 6 VM, then you can do that with the Java 7 SDK tools. You can specify which target VM you wish to support, but you have to know that a version 6 VM might not support all the features a version 7 VM will.

Upvotes: 0

Rahul Tripathi
Rahul Tripathi

Reputation: 172628

JRE 1.7 + version will be good to use.

On a side note:-

It is nothing like that your Java 6 code will not run on Java 7 code. The difference is that the speed increases when running them on later runtimes. This is because Java is constantly evolving, not just the language but also the JVM (Java virtual machine). SO it would be an added advantage of speed if you choose to use the later versions.

Upvotes: 2

Amit Sharma
Amit Sharma

Reputation: 6184

Latest JRE version which will be 1.7+ is good.

Upvotes: 1

Related Questions