Problem:
Error: cannot access java.lang.Object
bad class file: C:\Program Files\Java\jre1.5.0_04\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
Solution:
Check whether the JREs are of same version in the following places:
1. Window->Preferences->Java->Installed JREs:
2. Project->Properties->Java Build Path->Libraries->JRE System Library
If both are same then there are some other java jars referenced in the Libraries which
belong to a different version.
No comments:
Post a Comment