Skip to main content

I created one custom package and it is working fine by testing the code using test class in IntellJ. When i am using the .jar file in AutomationAnywhere.then i am getting this error. Can someone please help me on this.

 

Log-

at java.lang.Thread.run(Unknown Source) ?:?]

Caused by: java.lang.ClassNotFoundException: com.automationanywhere.commandsdk.i18n.MessagesFactory

Check the version of java.

Hello! I have the same problem!!Once package is built I test it and get the same error...

 

com/automationanywhere/commandsdk/i18n/MessagesFactory

 

 


Check the Java SDK version installed on your machine and the version selected in IntelliJ. Both version should be same.



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986>for Windows

You mean Java JDK?? I have version 11 installed, could you please tell me how did you solve it?


image.pngI have just installed java sdk version 11 and set it there, am I missing something else? Thank you


I was using gradle clean build instead of gradle build clean shadowJar, so the .jar file was not correct. Once I have built it with gradle built clean shadowJar all worked


Reply