Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twilio API issue

Hello stackoverflow,

This might be a really easy question but I am having issues with building a basic sms reply application in java. I googled around and couldn't find a solution for my problem. The issue occurs when I do the following imports:

import com.twilio.sdk.verbs.TwiMLResponse;
import com.twilio.sdk.verbs.TwiMLException;
import com.twilio.sdk.verbs.Message;

Eclipse throws an error when I try calling and implementing the Message class sayingThe import com.twilio.sdk.verbs.Message cannot be resolved . I have no issues with the other classes, just the Message class. And I have used Maven to compile the project.

Anybody have any solutions and/or solutions for this issue?

like image 690
KPath001 Avatar asked Dec 15 '25 02:12

KPath001


1 Answers

You need to specify external libraries in the Build Path.

In Eclipse right click on your project > Build Path > Configure Build Path > Libraries > Add JARs (or "Add External JARs" if you didn't copy it into your project folder).

If it still doesn't work there might be dependencies you are missing, so you need those as well. To save the headache you could also use Maven to download them automatically.

like image 134
runDOSrun Avatar answered Dec 16 '25 16:12

runDOSrun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!