ConvertAPI / convertapi-library-java

A Java library for the ConvertAPI
https://www.convertapi.com
Other
17 stars 11 forks source link

Convertapi 2.2 to 2.9 - Error: java.lang.NoClassDefFoundError: Could not initialize class com.convertapi.client.Http #31

Open amungen opened 1 year ago

amungen commented 1 year ago

Hello, I am using Netbeans IDE 15 and JDK14. When I changed com.convertapi.client from 2.2 to 2.9, I started getting the error "java.lang.NoClassDefFoundError: Could not initialize class com.convertapi.client.Http" and the connection was not opening.

As a solution, I added the below jar in maven.

 <dependency>
         <groupId>org.jetbrains.kotlin</groupId>
         <artifactId>kotlin-stdlib</artifactId>
         <version>1.3.70</version>
     </dependency>

When I added this jar it worked fine.