How to resolve java client error Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/core/MediaType

Hi

this reply might help here: PlatformImpl() - #2 by Kai_Sieben, it specifically tells:

In latest versions the PlatformImpl class cannot be used directly anyway anymore, hence you should follow the Spring Boot Bean injection principles to use the SDK and its beans, e.g. just inject “InventoryApi” instead of using the “PlatformImpl” class.

There’s also a link with a sample repository that shows how to use these beans instead of the PlatformImpl class.

2 Likes