コンパイルは問題なく通るのに実行時にこのエラーが出るときの話。
プロジェクトのプロパティ -> Java のビルド・パス -> 順序およびエクスポート
と辿ると該当するJARのチェックが外れているはず。
チェックを入れて設定を保存すればOK。
チェックを入れてもダメな場合は「順序およびエクスポート」で順序を上にすればOK。
More than 5 years have passed since last update.
実行時に"Could not find class 'xxx.xxx', referenced from method"というエラーが出るとき
Last updated at Posted at 2012-05-17
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
67