# LinkageError when running the application

**URL:** <https://community.orkes.io/t/linkageerror-when-running-the-application/72>\
**Category:** Conductor OSS\
**Created:** [January 21, 2025, 4:28am UTC](https://community.orkes.io/t/linkageerror-when-running-the-application/72 "2025-01-21T04:28:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaysmaverick](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jaysmaverick](https://community.orkes.io/u/jaysmaverick)\
**Post date:** [January 21, 2025, 4:28am UTC](https://community.orkes.io/t/linkageerror-when-running-the-application/72/1 "2025-01-21T04:28:39Z")

</div>

Sample application gives below error when running and this error happens in the line to create WorkflowExecutor

## Exception

Exception in thread “main” java.lang.LinkageError: ClassCastException: attempting to castjar:file:/C:/Users/jaysm/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class to jar:file:/C:/Users/jaysm/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class

* * *

## Code

public static void main(String args)  
{  
SpringApplication.run(OrkesConductorApplication.class, args);

```
     System.out.println("Hello world!");
        ApiClient apiClient = new ApiClient("https://developer.orkescloud.com/api"); 
      
        OrkesClients oc = new OrkesClients(apiClient);

        WorkflowExecutor executor = new WorkflowExecutor(
                oc.getTaskClient(),
                oc.getWorkflowClient(),
                oc.getMetadataClient(),
                10);

    // executor.initWorkers("com.orkes_conductor"); 
    }

```

---

<div class="post-metadata">

**Author:** ![jeff.bull](https://sea2.discourse-cdn.com/flex002/user_avatar/community.orkes.io/jeff.bull/32/3_2.png) [@jeff.bull](https://community.orkes.io/u/jeff.bull)\
**Post date:** [February 4, 2025, 1:07am UTC](https://community.orkes.io/t/linkageerror-when-running-the-application/72/2 "2025-02-04T01:07:47Z")

</div>

Hey @jaysmaverick , thanks for posting!!

Follow-up question: You mentioned the error occurring in a sample application. Are you trying one of the sample apps at [GitHub - conductor-oss/conductor-apps: Sample applications built with Conductor](https://github.com/conductor-oss/conductor-apps)?
