I am try to send a text message via a Java Code following Twilio tutorial here but i am getting java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/JsonMappingException
at Line 13 in my code where i am writing Service service = Service.creator("My First Messaging Service").create();
I tried following this thread and have added all the required dependencies but i don't know where to use @JsonIgnore in my code Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/JsonMappingException$Reference
How can i resolve this? Please help me how to fix this. Here's my java code
import com.twilio.Twilio;
import com.twilio.rest.messaging.v1.Service;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.core.*;
public class SMSOTP
{
public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");
public static void main(String[] args)
{
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
Service service = Service.creator("My First Messaging Service").create();
System.out.println(service.getSid());
}
}