JXL APIを使用してアプリケーションを操作していますが、Eclipse IDEを使用してコンパイルしようとすると正常に動作し、コマンドプロンプトでコンパイルしようとして、以下の例外が表示されても同じようにコンパイルされません。
Extract.java:6: cannot access jxl.read.biff.BiffException bad class file: C:\Program Files\Java\jdk1.5.0_01\jre\lib\ext\jxl.jar(jxl/read/biff/BiffException.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
import jxl.read.biff.BiffException;
^
1 error
編集:
JDK1.6を使用して実行できます。JDK 1.6は下位バージョンとも互換性がある必要があるため、JDK1.5でコンパイルされたクラスファイルをサポートしないのはなぜですか。