Solved

jre 1.7

Posted on 2012-03-20
9
441 Views
Last Modified: 2012-06-21
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
Comment
Question by:mohet01
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 37741772
just run your old code under JRE 1.7.
0
 

Author Comment

by:mohet01
ID: 37742054
Hello
Will there be any sideffects running  older code(compiled with jdk 1.5) in jre 1.7?

Sham
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 37742266
Will there be any sideffects running  older code(compiled with jdk 1.5) in jre 1.7?

Unlikely
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 37

Expert Comment

by:bbao
ID: 37742322
except the old code depends on the routines removed or vulnerabilities fixed in the newer runtime.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37742714
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
 

Author Comment

by:mohet01
ID: 37745872
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
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 37745880
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
 
LVL 47

Expert Comment

by:for_yan
ID: 37745889
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
 

Author Closing Comment

by:mohet01
ID: 37751792
thanx
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java jdbc batch example 8 35
Way to decrease size of apk file 9 70
How to convert String matching to regex in java 4 34
SHA2 certs for IIS AND Java? 2 94
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question