|
Re: java.lang.ClassFormatError: Bad major verision number
|
Posted: Mar 18, 2002 7:02 AM
|
|
Before anything, I want to thank all of you that have replied! Thank you all so VERY much! You have all given prompt and useful answers to my questions - I am SO grateful!!
I use this Solaris system at work - right now, it's all I have, and I'm pretty much at the mercy of what the sysadmins allow installed. At home, I have a PC running Windows 98 - on that, I have Netscape (4.78), IE (6.0), and Opera (6.01) - and I tried my applet(still compiled under 1.4) in each - and found out something interesting: Netscape wouldn't run the applet and gave me the same error I was getting on the Solaris system - UNTIL I enabled the Java plug-in - then the applet ran flawlessly. Why? How is it that other applets run fine without that plug-in enabled?
Something else I noticed - NO applets, ANYWHERE, would run under IE - this is a purely default version, I haven't done much of anything to customize it, as at home I usually use Netscape; so what do I need to do to enable applets in IE? (Just for consistency, and if you're interested, Opera had no trouble running the applet - this is Opera "straight out of the box", no customizations.)
Thanks to your answers, now I know just what "major version number" is being talked about! I tried re-compiling with the "-target 1.2" as Bill suggested - and got a different error under Solaris - now it's "class xxxx could not be loaded" - hopefully, I can figure that one out!
Speaking of converting HTML, I read a book that talked about having to convert applets in HTML before running them - is that for all applets, or just some? When I first heard about applets, about 6 years ago, a book I had then said all you needed to do was compile your applet, put an <APPLET> tag in your HTML and refer to the applet's .class file in the parameters of that statement and the applet would execute in a Java-enabled browser. Is that no longer true?
|
|