Solved

jre 1.7

Posted on 2012-03-20
9
459 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 104
How do I remove an object from a 3 60
Java array 10 86
Java array 21 149
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

732 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