• 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

Recompile when updating JRE

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do I need to recompile my class files (compiled with JVM 1.4.x) when I am updating my JRE from version 1.4.x to something higher (1.4.y not 1.5).
 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No
 
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
No - with new releases Sun always takes great care to ensure that programs from older Java versions work on the newer version.

Sometimes, with a major new release (for example 1.4 -> 1.5) some specific things do change, and you should look at the documentation of the newer version, which includes a document about version compatibility with previous releases. If you don't use those specific things, then you do not need to modify or recompile your code.

Minor new releases (for example 1.4.x -> 1.4.y) contain only bugfixes and don't require you to change your source code or recompile.
 
reply
    Bookmark Topic Watch Topic
  • New Topic