Ho risolto, l' ultimo errore era
No 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).
riferito alla riga
codice:
HoldInteger somma = new HoldInteger();
ho risolto spostando la classe HoldInteger fuori dalla classe MyThread nel pacchetto dove era dichiarata la classe MyThread.

Grazie alex per l' aiuto!