简体   繁体   中英

Upgrade java applications from old to a newest version

I have a doubt about java upgrading

I have applications running in java 6, for example.

And I wanto to upgrade my java to a 7 or 8

My doubt is : What is the best way to upgrade mi current java version? Or how can I do it?

This applications currently are productive , so this means I has to upgrade the java version witouth affectate it .

I'm very confused about this, hope you can help me

There's only one way to do it:

  1. Upgrade the JVM
  2. Recompile the code and fix any errors that the JVM complains about.
  3. Regression test the code running under the new JVM and make sure the functionality is unchanged.
  4. Take the opportunity to see if there are any advantages to adding new features (eg java.time package, lambdas, java.util.function package, etc.)

No one should be running on any JVM other than 8 or 9. JDKs older than 8 have passed the end of their support lives. They are not getting any more security patches.

You are making the excuse that everyone tries when faced with currency issues: "The code is working fine. Why change it?"

Unfortunately there's a price to falling behind.

I'd advise you to upgrade as soon as possible. Stop the excuses.

JDK 9 is the current version. Current or current-1 is usually acceptable; current-3 is not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM