Building small Twitter app in Eclipse, cannot get OAuth to work


I am developing a small Twitter application in Eclipse for a college project, I have searched for hours on how to implement this into Eclipse but every solution i come across uses old API or throws errors. Just trying to Sign In on the event that a button is pressed. Any help is much appreciated!