class file has wrong version

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Vladimir

class file has wrong version

Post by Vladimir »

If you get an error message that looks like:
"...class file has wrong version 48.0..."

It's probably because you've just started using jdk1.4.0 and were previously using jdk1.3. There's been a change in the way the jdk1.4 compiler signs class files, this is causing problems for the jdk1.3 compiler that your TextPad installation is still pointing to. You need to change the officially recognized compler by doing the following:

In regedit:

Change
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion to jdk1.4

and

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion to jdk1.4

Now compilation should work from within TextPad. Enjoy!

--
Vlad
Post Reply