Solved

jre 1.7

Posted on 2012-03-20
9
417 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:Bing CISM / CISSP
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
 
LVL 37

Expert Comment

by:Bing CISM / CISSP
ID: 37742322
except the old code depends on the routines removed or vulnerabilities fixed in the newer runtime.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now