Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE 1.6 and JRE 1.4 compatibility

 
suresh nuzella
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15369
40
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
suresh nuzella
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic