Solved

Internet explorer hates my applet

Posted on 2004-10-10
9
237 Views
Last Modified: 2010-03-31
Ok, basically:
I made a small game.
It works fine in firefox.
It works in internet explorer about 5% of the time. No reason why it refuses to work the rest (it says Wheel.class not found or Init.class not found or something, i cant find the exact error because its working just now.)

I have no idea whats going on, and its beginning to drive me insane.

Can anyone shed any light on whats wrong?

The game is at
http://www.actionjesus.pwp.blueyonder.co.uk/other/wheel.htm
the source code is at
http://www.actionjesus.pwp.blueyonder.co.uk/Wheel.java

many thanks for any help.
0
Comment
Question by:hippydaz
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 1

Expert Comment

by:oferzinger
Comment Utility
the java console at IE 6 says:
java.lang.UnsupportedClassVersionError: Wheel (Unsupported major.minor version 49.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at sun.applet.AppletClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.applet.AppletClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.applet.AppletClassLoader.loadCode(Unknown Source)
      at sun.applet.AppletPanel.createApplet(Unknown Source)
      at sun.plugin.AppletViewer.createApplet(Unknown Source)
      at sun.applet.AppletPanel.runLoader(Unknown Source)
      at sun.applet.AppletPanel.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

That typically means that the applet was compiled by an older version from the JVM that
runs on my local machine (1.4.2_03)

try recompiling it on a newer version.
Ofer Zinger.
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 100 total points
Comment Utility
Did you install SUN's JAVA (JRE) on the target machine?

The standard JVM from Microsoft is a bit obsolete ...
;JOOP!
0
 
LVL 14

Assisted Solution

by:sudhakar_koundinya
sudhakar_koundinya earned 25 total points
Comment Utility
It is running perfectly at my end. My IE 6.0 uses  jre 5
As suggested by sciuriware try installing new jre to your IE

0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
If your applet is not actually using any features of 1.5, recompile it to as low a version as possible using

javac -target 1.2 <other args> YourApplet.java

or hardly anyone will be able to see it
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:hippydaz
Comment Utility
That seems to have done the job quite nicely.
I was running an older version (i think). I installed version 5 and everythings running fine now.

Not sure why firefox would handle it so well but explorer died. Oh well.

Bulk of points to sciuriware, some to sudhakar for assisting.

Thanks all.
0
 

Author Comment

by:hippydaz
Comment Utility
CEHJs comment just came up after i set out points and that last comment.

I'll give that a shot later, and many thanks, but no points im afraid.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
>>Not sure why firefox would handle it so well but explorer died. Oh well.

Maybe because the IE in question has < 1.5 runtime

>>CEHJs comment just came up after i set out points and that last comment.

Yes, missed that by seconds. Never mind ;-)
0
 
LVL 24

Expert Comment

by:sciuriware
Comment Utility
We're even friend.
;JOOP!
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
;-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now