• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassFormatError: Bad Major Version Number

 
Jennifer Wallace
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is weird! An HTML file loading an applet works fine in IE, But when opened in Netscape Navigator gives the error in the status bar:
Applet Distances error java.lang.ClassFormatError: Bad Major Version Number
[ May 09, 2002: Message edited by: Jennifer Wallace ]
 
Jennifer Wallace
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, I tried opening the Demo applets (which come along with jdk) in my machine with netscape. Similar error occurs!
But, when I open the Code Barn at JavaRanch, those applets seem to work fine.
Any help will be appreciated.
 
Jennifer Wallace
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am here back with the same persisting problem with little more details.If you have any info in this regard, do share it.
This time I downloaded Netscape 6 afresh.
When I try to open a jdk1.4 applet in my computer in Netscape, I am prompted to download the plugin.
But I have jdk 1.4(J2SE) downloaded into my computer already. Looks like the second FAQ here is pertinent to my problem. But I am at a loss as I don't know how to set it in Netscape . $javahome ? plugin path ?
Didnt make much sense to me. Could somebody explain this ?
Also, I tried getting into Control Panel > java plugin1.4 and tried setting it as default for Netscape, but I was not able to do it. Currently java plugin 1.4 in the control panel shows as default for IE but not Netscape 6.
If you can, please do shed some light on this problem.
Thanks,
Jennifer
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jennifer,
To get the plug-in into netscape you will need to copy the file named:
npjava???.dll
where ??? stands for various versions from the directory where you installed the JDK:
subdir: jre\bin\
to the Netscape directory:
subdir: plugins\
Regards,
Manfred.
 
Jennifer Wallace
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Manfred! It worked. It is pretty exciting to see my applet after staring at a cross for such a long time.
Regards,
Jennifer
[ May 29, 2002: Message edited by: Jennifer Wallace ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic