Java Class Is Not An Enclosing Class