Solved

JDK Compatibility

Posted on 2007-03-22
9
356 Views
Last Modified: 2010-03-31
It may be a basic question but I am still unfamiliar with this thing.

This is about jdk compatibility. For example, if I used jdk 1.6 to develop my application. It definitely may fail in jre 1.5 since it may not have the necessary libraries i.e. javax.swing.GroupLayout. Forcing the user to update its jre is also not a good idea as most users may not be familiar on what jre is (ESPECIALLY in Windows where you can have multiple JRE and things are getting messy).

If I develop in jdk 1.4 or lower, then I deploy it in jre 1.5 or jre 1.6, it WILL work fine but there may be some methods that have been deprecated (it could happen) i.e. stop(), suspend() in Thread.

So what would be the best idea? I think that it is better to stick with 1.4. At least you only get the deprecated method :/

David
0
Comment
Question by:suprapto45
9 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 200 total points
ID: 18769812
>> I think that it is better to stick with 1.4.

Yes ;-)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18769820
You're not very likely to get methods deprecated between 4 and 6
0
 
LVL 16

Author Comment

by:suprapto45
ID: 18769822
But deprecated means that it will be removed at later version. Am I right?

By that time, my 1.4 app won't run (I believe) then I need to fix it to use the new method. Then is it a disadvantage of Java?

Thanks
David
0
 
LVL 16

Author Comment

by:suprapto45
ID: 18769829
>>"You're not very likely to get methods deprecated between 4 and 6"
Yep, you can breathe easily and happily till version 6. How about version 7 and so on?

It starts to be similar to Window where all the vendors start testing their app towards Windows Vista, doesn't it?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Assisted Solution

by:Jaax
Jaax earned 200 total points
ID: 18769834
>But deprecated means that it will be removed at later version. Am I right?
No. Deprecated means Java discourages its use.
Java may discourage from using certain methods in a class, but it has never ceased support for earlier implementations. Methods are backward compatible  (even though Java may have deprecated)
0
 
LVL 16

Author Comment

by:suprapto45
ID: 18769840
>>"No. Deprecated means Java discourages its use."
That is much a relieve :). It would be a disaster if Java follows how Window works. Actually, it is the good thing for us to earn *extra* money as they need to keep upgrading their system :D.

Sorry, I gotta go for a meeting. Please feel free to post any comment(s).

Thanks
David
0
 
LVL 92

Assisted Solution

by:objects
objects earned 100 total points
ID: 18769962
1.5 is pretty wide spread now. The majority of your users will be running 1.5 and greater.
Wouldn't get too concerned about deprectaed methods. If you develop to 1.5 and don't use any deprecated methods then you're going to be future safe.
0
 
LVL 16

Author Comment

by:suprapto45
ID: 18772406
Thanks all again.

CEHJ, your 3-characters - *Yes* answer worths 200 EE points :).

Thanks Jaax and objects.

David
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18773254
:-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 24
Impossible to extract MSI from new JAVA releases 2 50
advertisement module in core php 4 148
print map entry 34 56
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

861 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

29 Experts available now in Live!

Get 1:1 Help Now