aspose file tools*
The moose likes Java in General and the fly likes JRE 1.6 and JRE 1.4 compatibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JRE 1.6 and JRE 1.4 compatibility" Watch "JRE 1.6 and JRE 1.4 compatibility" New topic
Author

JRE 1.6 and JRE 1.4 compatibility

suresh nuzella
Greenhorn

Joined: Aug 30, 2009
Posts: 10
HI all,

I have an application that uses JDK 1.4 and JRE 1.4 and it has swing components in it.

Now users are upgrading their desktops to JRE 1.6.whether all the swing components work fine with JRE 1.6?

Also is there any way so that JRE 1.6 behaves like JRE 1.4.Is there any command to set so that JRE 1.6 can run swing components assuming that as JRE 1.4.

Please help me.Also is it necessary to upgrade our JDK to JDK 1.6 in this scenario(Users are just upgrading to JRE 1.6 on their desktops).Actually our application code resides on a unix server with JDK 1.4 and JRE 1.4 and users are sending requests to this server.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Try the Retrotranslator utility. But in theory, classes compiled to JDK 1.4 are targetted to run in JRE 1.4 and you might end up with a RuntimException when you try to run that in JRE 1.6.


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

Jothi Shankar Kumar wrote:But in theory, classes compiled to JDK 1.4 are targetted to run in JRE 1.4 and you might end up with a RuntimException when you try to run that in JRE 1.6.


That's not true. Classes compiled with JDK 1.4 can run in a target VM 1.6. But the other way isn't possible.

[My Blog] [JavaRanch Journal]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

Retrotranslator is a utility for making Java programs written for Java 6 work on older versions, such as Java 1.4.

I think Suresh wants to do the opposite: run his Java 1.4 program on Java 6 on the user's desktops. That should work without any modifications, but there might be minor points you'll have to look at. See Java SE 6 Compatibility with previous releases.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
suresh nuzella
Greenhorn

Joined: Aug 30, 2009
Posts: 10
Thanks for your reply.

Is it necessary to upgrade server side java to java 1.6?.In our apps users are just upgrading their desktops with JRE 1.6 and sending request to our application applet residing on the server.In such a scenario what is the necessity to upgrade server side java to 1.6?Please help me..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JRE 1.6 and JRE 1.4 compatibility
 
Similar Threads
GWT in Action:Two questions
Specify a specific JRE per an application ?
JVM stuck on version 1.4
jdk and jre
Tomcat 6