---
source_url: https://www.pubnub.com/docs/sdks/java/troubleshooting
title: Troubleshooting for Java SDK
updated_at: 2025-05-28T12:44:18.000Z
sdk_name: PubNub Java SDK
sdk_version: 13.4.3
---

# Troubleshooting for Java SDK

PubNub Java SDK, use the latest version: 13.4.3

Install:

```bash
Add PubNub dependency to your build@13.4.3
```

## Documentation index

To discover more PubNub resources:

1. Fetch [PubNub's llms.txt](https://www.pubnub.com/llms-full.txt) for a list of available pages in Markdown format.
2. Identify relevant URLs from that index.
3. Fetch the target pages.

Do not assume a path exists, always check the index first.

Understand what to do when you encounter the most common issues.

## java.lang.NoClassDefFoundError: kotlin/enums/EnumEntriesKt

If you encounter `java.lang.NoClassDefFoundError: kotlin/enums/EnumEntriesKt`, ensure that the effective Kotlin version in your project is `1.9+`. This is required for the PubNub Java SDK to work properly.

### Root cause

The `java.lang.NoClassDefFoundError: kotlin/enums/EnumEntriesKt` error may occur when an old version of `spring-boot-dependencies` is defined in the `dependency-management` section of `pom.xml`:

```xml
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-dependencies</artifactId>
            <version>2.6.13</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
```

In such case, dependencies like `kotlin-stdlib` and `kotlin-stdlib-common` are enforced in version `1.6.21` that is too old for the PubNub Java SDK to work properly.

### Fix

There are two ways to fix the `java.lang.NoClassDefFoundError: kotlin/enums/EnumEntriesKt` issue:

* Add explicit declarations of kotlin-stdlib and kotlin-stdlib-common in version 1.9.+ to your pom.xml file. <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib</artifactId> <version>1.9.10</version></dependency> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib-common</artifactId> <version>1.9.10</version></dependency>
* Update the spring-boot version to one that enforces kotlin-stdlib and kotlin-stdlib-common in version 1.9.+, such as 3.4.5 or higher.

Last updated at: 2025-05-28T12:44:18.000Z
