For my final in Java we have a \"exceptions\" part on the test with try, catch, and finally calls. When I try to put the example code into Eclipse I get errors in the catch
I think it's worth mentioning that in Eclipse, Ctrl+Shif+O does the job of resolving the imports for you.
I discovered I was using an old version of JWT , the issue is gone after using the a newer version of JWT dependency .
Oh, guess I could answer my own question here. Didn't know I had to import the IOException from java.io!
Easy to just use
import java.io.*
for the imports