Link to home
Start Free TrialLog in
Avatar of mohet01
mohet01Flag for India

asked on

jre 1.7

Hello
Our product has java source code compiled with jdk 1.5
and we are running the classes using jre 1.5

Is that possible to run the same classes byt replacing jre 1.5 with jre 1.7?
or
Do we need to re-compile alll the java code with jdk 1.7?


Sham
Avatar of bbao
bbao
Flag of Australia image

just run your old code under JRE 1.7.
Avatar of mohet01

ASKER

Hello
Will there be any sideffects running  older code(compiled with jdk 1.5) in jre 1.7?

Sham
Will there be any sideffects running  older code(compiled with jdk 1.5) in jre 1.7?

Unlikely
except the old code depends on the routines removed or vulnerabilities fixed in the newer runtime.
It is very rare that theyu remove any methoids in the older java - so in all probability it will run your classes compoilked with 1.5 just fine. Even if you compile your old code with newer compiler you mnay see. A lot of deprecated warnings, but in all probability ytour application will still run fine as those deprecated are disciouraged but not remvbed in the newer version of java.
It is more likely with GUI elements that something will not satisfy youi when you run it with newer java.n soi give it a try anyway.
Avatar of mohet01

ASKER

hello for_yan
1) what is java.n soi?
2) gui related stuff would give problem?
3) as per the standards does all companies compile with new sdk, if they want to run with new jre?
4) I do not want to face  the bad  after effects of running  old code with new jre, so please let me know your experience

sham
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On the other hand, if you have big applications and nothing presses you too much, I'd still wait a few months before moving to Java 1.7. Though I guess it is more than half a year as java 1.7 was released still I feel not that many people transitioned, it is only on update 3 currently - there may still be some details. Unless something presses you - I'd wait a few months maybe even half a year
Avatar of mohet01

ASKER

thanx