Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Java.lang bad major version error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I'm a greenhorn paper pusher but trying to get back in the saddle!
I'm trying to run some simple applets from Dietel's version 3 book and get this error above in Netscape. My SDK and JRE environments are the latest and greatest.
Help!!! sunyoga@hotmail.com
 
John Toozen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't bother with this question! I got it to work work the applet viewer. Still a bit confused cause I thought it should just fire up when I pulled up the HTML in the browser - and I know some applets will work that way...
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your JVM supports an earlier version of a class but the applet was compiled with a later version. When this happens you might see the following message in the Java console or message bar:
# Applet exception: error: java.lang.ClassFormatError: Bad major version number

You have two choices
1) Download the Sun plug-in
2) Compile with the "-target 1.1" option

Option #2 won't work if you are using Swing.
 
Your mind is under my control .... your will is now mine .... read this tiny ad
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic