# Exception when trying to create client

**URL:** <https://devforum.okta.com/t/exception-when-trying-to-create-client/27772>\
**Category:** API\
**Tags:** java\
**Created:** [April 16, 2024, 10:02pm UTC](https://devforum.okta.com/t/exception-when-trying-to-create-client/27772 "2024-04-16T22:02:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mn123](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@mn123](https://devforum.okta.com/u/mn123)\
**Post date:** [April 16, 2024, 10:02pm UTC](https://devforum.okta.com/t/exception-when-trying-to-create-client/27772/1 "2024-04-16T22:02:28Z")

</div>

received the below error when trying to build client using OKTA java sdk.  
“Unable to find a ‘com.okta.commons.http.RequestExecutorFactory’ implementation on the classpath. Please ensure you have added the okta-sdk-httpclient.jar file to your runtime classpath.”

using the below mvn dependencies:  
± com.okta.authn.sdk:okta-authn-sdk-api:jar:2.0.11:compile  
[INFO] | - org.jetbrains:annotations:jar:24.0.1:compile  
[INFO] ± com.okta.authn.sdk:okta-authn-sdk-impl:jar:2.0.11:compile  
[INFO] ± com.okta.sdk:okta-sdk-api:jar:8.2.5:compile  
[INFO] | ± com.okta.commons:okta-config-check:jar:1.3.3:compile  
[INFO] | ± com.okta.commons:okta-http-api:jar:1.3.3:compile  
[INFO] | - com.okta.commons:okta-commons-lang:jar:1.3.3:compile  
[INFO] ± com.okta.sdk:okta-sdk-impl:jar:8.2.5:runtime  
[INFO] | ± org.yaml:snakeyaml:jar:1.30:runtime  
[INFO] | ± org.bouncycastle:bcprov-jdk18on:jar:1.75:runtime  
[INFO] | ± org.bouncycastle:bcpkix-jdk18on:jar:1.75:runtime  
[INFO] | | - org.bouncycastle:bcutil-jdk18on:jar:1.75:runtime  
[INFO] | ± io.jsonwebtoken:jjwt-api:jar:0.11.5:runtime  
[INFO] | ± io.jsonwebtoken:jjwt-impl:jar:0.11.5:runtime  
[INFO] | - io.jsonwebtoken:jjwt-jackson:jar:0.11.5:runtime  
[INFO] - com.okta.commons:okta-http-httpclient:jar:1.3.5:compile  
[INFO] - org.apache.httpcomponents.client5:httpclient5:jar:5.2.1:compile  
[INFO] ± org.apache.httpcomponents.core5:httpcore5:jar:5.2:compile  
[INFO] - org.apache.httpcomponents.core5:httpcore5-h2:jar:5.2:compile

---

<div class="post-metadata">

**Author:** ![vk-giri](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vk-giri/32/5178_2.png) [@vk-giri](https://devforum.okta.com/u/vk-giri)\
**Post date:** [April 23, 2024, 4:51am UTC](https://devforum.okta.com/t/exception-when-trying-to-create-client/27772/2 "2024-04-23T04:51:45Z")

</div>

Hi,

Which version of the Java SDK are you using? I will suggest you to try the latest version of the sample and see if you can reproduce this behaviour there.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [May 23, 2024, 4:52am UTC](https://devforum.okta.com/t/exception-when-trying-to-create-client/27772/3 "2024-05-23T04:52:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
