Closed hauze-v closed 4 years ago
When I run javac I get the following:
λ javac Main.java Main.java:10: error: cannot find symbol import com.twilio.Twilio; ^ symbol: class Twilio location: package com.twilio Main.java:11: error: package com.twilio.rest.api.v2010.account does not exist import com.twilio.rest.api.v2010.account.Message; ^ Main.java:12: error: package com.twilio.type does not exist import com.twilio.type.PhoneNumber; ^ Main.java:24: error: cannot find symbol Twilio.init(ACCOUNT_SID, AUTH_TOKEN); ^ symbol: variable Twilio location: class Main Main.java:27: error: cannot find symbol Message message = Message ^ symbol: class Message location: class Main Main.java:28: error: cannot find symbol .creator(new PhoneNumber(getenv("TO_NUMBER")), // to ^ symbol: class PhoneNumber location: class Main Main.java:29: error: cannot find symbol new PhoneNumber(getenv("FROM_NUMBER")), // from ^ symbol: class PhoneNumber location: class Main Main.java:27: error: cannot find symbol Message message = Message ^ symbol: variable Message location: class Main 8 errors
What do you get with the mvn clean install
, does that provide a JAR? I'll test this in a bit!
I've been reading the Maven documentation and even some docs on Java packages, but I can't understand what I'm doing wrong and why I can't seem to abstract my little java function and place it into this repo.
It obviously works in my own IDE and on my own machine in a separate java project I've created, but I'm having trouble getting it to compile with
javac
inside twilio-microservice.