Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why java.lang.NoClassDefFoundError at runtime?

Wellington Santana
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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