• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

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
0
mohet01
Asked:
mohet01
  • 3
  • 3
  • 2
  • +1
1 Solution
 
bbaoIT ConsultantCommented:
just run your old code under JRE 1.7.
0
 
mohet01Author Commented:
Hello
Will there be any sideffects running  older code(compiled with jdk 1.5) in jre 1.7?

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

Unlikely
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
bbaoIT ConsultantCommented:
except the old code depends on the routines removed or vulnerabilities fixed in the newer runtime.
0
 
for_yanCommented:
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.
0
 
mohet01Author Commented:
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
0
 
for_yanCommented:
1) it was a misprint:
It is more likely with GUI elements that something will not satisfy you when you run it with newer java. So, give it a try anyway.

2)
>gui related stuff would give problem?
Not necessarily, I just meant that GUI is very sensitive part, subject to tastes of users - it may change a little bit - and sometimes it causes some inconvenience. It was more statement that if you see the problems with higher java they would more proabably would be with gui than with the back end

3)
>as per the standards does all companies compile with new sdk, if they want to run with new jre?
All standards are duifferent. No sense to start with compiling.
First try to execute.
The bigger your application the more probability that something will not satisfy
on different java - then you'll want to adjust and compile

4) most probably you'll not face bad after effects
My experience is in general good - java makes a good job with  compatibility with previous versions
0
 
for_yanCommented:
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
0
 
mohet01Author Commented:
thanx
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now