I am trying to invoke java code. In my code, I’ve imported a library also. When I am running my uipath work flow, I am getting failed for invoke java method due to below reason:
RemoteException wrapping System.AggregateException: One or more errors occurred. —> RemoteException wrapping System.InvalidOperationException: The method could not be invoked. —> RemoteException wrapping System.InvalidOperationException: An invocation exception has occured during the execution of the target.Invocation target exceptions:java.lang.NoClassDefFoundError: com/thed/zephyr/cloud/rest/ZFJCloudRestClient
com.Test.jwt.jwtMethod(jwt.java:63)Java Invoker program exception:java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at com.uipath.instance.ObjectInstance.InvokeMethod(ObjectInstance.java:141)at com.uipath.invoker.InvokerContext.invokeStaticMethod(InvokerContext.java:165)at com.uipath.invoker.InvokerContext.invokeStaticMethod(InvokerContext.java:40)at com.uipath.server.DotNetProcessRequest.processRequest(DotNetProcessRequest.java:52)at com.uipath.Main.main(Main.java:46)Caused by: java.lang.NoClassDefFoundError: com/thed/zephyr/cloud/rest/ZFJCloudRestClientat com.Test.jwt.jwtMethod(jwt.java:63)… 9 moreCaused by: java.lang.ClassNotFoundException: com.thed.zephyr.cloud.rest.ZFJCloudRestClientat java.net.URLClassLoader.findClass(URLClassLoader.java:381)at java.lang.ClassLoader.loadClass(ClassLoader.java:424)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)… 10 more
at UiPath.Java.Service.JavaResponse.ThrowExceptionIfNeeded() at UiPath.Java.JavaInvoker.d__17.MoveNext()— End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Java.JavaInvoker.d__14.MoveNext()— End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Java.Activities.InvokeJavaMethod.d__16.MoveNext()
— End of inner exception stack trace —
at UiPath.Java.Activities.InvokeJavaMethod.d__16.MoveNext()