Well, it`s a pretty stupid algorithm, but:
I found only one utility which could recompile java classes -
Toad.
Login as SYS, try to recompile first class. some could not be recompiled, but some - can.
Recompile first, if it was successful, recompile next, after
first "priveleges" error do refresh comand. With very high probability you will see that all section of classes now is VALID.

Can it be done in more simple way?