I didn't see the lines of code that give you the errors in the portion of the code you've posted. But the error is regarding static in inner class. Unless for declaring a static constant / final variable you can't have static declaration in inner class, for example define a static method in inner class is not allowed.
If you look at the code the static errors are there
So how do i go about fixing it. I tryed to make it as its own class file, and instantiate the class in a nother class.
But i keep getting throw or catch errors. When the class already has the throw and catch exception.