Mac OSXで作ってOSXのjavacではコンパイルエラーのかったファイルを
Fedra core3 にj2sdk1.4.2.10をインストールして、コンパイルしようとすると、
次のようなエラーが出ます。

18: error: Class or interface `javax.imageio.ImageIO' not found in import.
import javax.imageio.ImageIO;
^
445: error: Class `MessagingException' not found in `throws'.
throws IOException, UnsupportedEncodingException, MessagingException {
^
455: error: Class `MessagingException' not found in `throws'.
throws IOException, UnsupportedEncodingException, MessagingException {
^
3 errors

javax.imageio.ImageIOのエラーもよくわかりませんし、
MessagingExceptionもインポートしています。

原因がよく解らないのですがどなたかお応え頂けませんか?