Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

How to migrate your code from AWS SDK for Java 1.x to 2.x - AWS SDK for Java 2.x

How to migrate your code from AWS SDK for Java 1.x to 2.x

You can migrate your existing SDK for Java 1.x applications in a couple ways.

  1. Automated approach by using the migration tool.

  2. Manual approach by incrementally replacing 1.x imports with 2.x imports.

We recommend that you start by using the migration tool. It automates much of the routine, replacement work from 1.x to 2.x code.

Since the preview release of the tool doesn't migrate all features, you'll need to search for remaining v1 code after running the tool. When you find code that the tool didn't migrate, follow the step-by-step instructions (manual approach) and use the migration guide articles to finish the migration.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.