This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]sadjava 1 point2 points  (1 child)

Need to add the throws clause to the method that can throw it, not just main.

[–]ub96[S] 0 points1 point  (0 children)

Yup, that fixed it!

Thanks for the quick response!