• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

JRE 1.6 and JRE 1.4 compatibility

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
He baked a muffin that stole my car! And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic