Solved

Java JRE and backwards compatibility

Posted on 2004-03-31
6
575 Views
Last Modified: 2013-11-23
I have been keeping my SDK fairly current on Linux (Sun 1.4.2_03) and the java application being developed is working fine. I know that the SDK comes complete with a jre that can be included if I install the application on other Linux computers.

My question is generic in that if I move my application, being developed with 1.4.2_03,  to other Linux computers that have some other version of the jre (1.3.1 from blackdown.org or Sun for example), should I have a lot to worry about?
0
Comment
Question by:jdwarren
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 10726138
Depends on whether you've used 1.4 specific classes. If you haven't, and recompile with

javac -target 1.3 YourApp.java

you should be OK
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10726238
>> javac -target 1.3 YourApp.java
You don't have to specify the -target option as the default for JDK 1.4 is 1.3 (sic).
0
 

Author Comment

by:jdwarren
ID: 10727357
orangehead911,
If the -target option is already defaulted to 1.3 does that mean that 1.3 and 1.4 basically are the same for javac and therefore there is not much to worry about?
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 10727444
>>You don't have to specify the -target option as the default for JDK 1.4 is 1.3 (sic).

Won't do any harm. Not the case with some compilers. If i compile with jikes against 1.4 libs without -target 1.3 it trashes 1.3 appletviewer
0
 
LVL 24

Assisted Solution

by:sciuriware
sciuriware earned 75 total points
ID: 10729593
Please distinguish between compiler and virtual machine (JRE):
1.4 added not too much to the notion of the .class files, only some optimisations and a smarter JRE for
higher speed. On the contrary 1.4 added a lot of new classes and techniques you're gonna miss on a 1.3
system.

Be aware that 1.5 will not be compatible on the compiler level: new language elements are added.

When you deliver an application, always add the current JRE and leave it to the customer to
install it or ask for a scaled-down version of the application.

;JOOP!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10733452
8-)
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

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…
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 “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

770 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