Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

1.5: class file has wrong version 49.0, should be 48.0

843810Apr 28 2004 — edited Oct 5 2008
Hi -- I just downloaded the 1.5 SDK, and I am unable to compile any
of my code (which was compiling fine in 1.4).

This is the error I get:

bad class file: C:\pkgs\j2sdk1.5.0\jre\lib\rt.jar(java/
class file has wrong version 49.0, should be 48.0

I've tried different -source and -target options with no luck.

It's like I have a bad rt.jar file or something, but I've tried it on
different machines with the same result. I assume I'm missing
something obvious... please fill me in, thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2008
Added on Apr 28 2004
64 comments
6,725 views