Update your application to use the new Jakarta EE package name

In Jakarta EE 9 the package namespace has changed from javax.* to jakarta.*. Applications need to be updated to use the jakarta prefix for Jakarta EE APIs and properties. The javax APIs in Java SE remain unchanged so not all javax packages should be changed. This rule is flagged once per file.

Using the Eclipse Transformer tool is recommended to update Java EE javax APIs and properties that have changed to the jakarta version. The tool can be used to update either application source or binaries. Find and replace all should not be used to update the javax packages to jakarta since the Java SE javax packages are unchanged.

This rule has an automated fix that updates the package namespace from javax.* to jakarta.* for Jakarta EE APIs.

Copy the custom configuration to your application build file to enable the fix automation.

For more information on the Eclipse Transformer, see Enabling Jakarta EE 9 for development and test by using the Eclipse Transformer or the Eclipse Transformer Github.