|
|
|
|
Here's a trivial applet:
...and here's what it looks like on this page: Note: Versions
are important when writing applets.
For example, when I first wrote the above applet, I wrote it and compiled it using JDK 1.5 . However, when I tried it in one of my browsers that had a Java 1.4 plug-in, my browser failed to load the applet successfully. I looked in the Java Plug-in's Console, and it told me that it had encountered an error: java.lang.UnsupportedClassVersionError: applets/GreetApplet
(Unsupported major.minor version 49.0)
Self-descriptive message, don't you think? When I investigated further, I discovered that I could not run the code I had written under JDK 1.5 using a Java Plug-in 1.4 (or earlier). So, I changed the source code to ensure I wasn't using any JDK 1.5 specific features, and then compiled it under JDK 1.4. The resulting version now runs using both the 1.4 and 1.5 versions of the Java Plug-in. |
|
This page was last modified on 02 October, 2007 |