Why java.lang.NoClassDefFoundError at runtime?

Wellington Santana June 26, 2017

I'm developing a plugin, but I'm suffering with this problem.

I need call my own class to make some functions. I had success importing my jar file with necessary classes  and compilimg successfully(code below)

 

MyRestResource.png 

When try to execute on Jira Developer Browser, Im getting this error.

JiraError.png

 

Why I'm getting this error? On compilation "import com.betternow.jiraservices.*;" was accepted successfuly.

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2023

Hi @Wellington Santana ,

you need to define class in your atlassian-plugin.xml file.

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer