Ho risolto, l' ultimo errore era
riferito alla rigaNo enclosing instance of type MyThread is accessible. Must qualify the allocation with an enclosing instance of type MyThread (e.g. x.new A() where x is an instance of MyThread).ho risolto spostando la classe HoldInteger fuori dalla classe MyThread nel pacchetto dove era dichiarata la classe MyThread.codice:HoldInteger somma = new HoldInteger();
Grazie alex per l' aiuto!