I am currently unable to bring up any of the SDK demo applets on my PC's browser. I remember that I was able to do this when I first began to learn Java a couple of years ago. About a year ago I noticed that I needed to run appletviewer to see the demo applets, but that didn't bother me. Now, however, I have installed Tomcat and am trying to learn JSP. I can move from an HTML form to a JSP and back again, which indicates to me that Tomcat is working, but none of the Java code on the JSP works. I know this is not a JSP forum, but I supect that my problem with viewing applets in my browser is related.
I use Windows 98. One of the first things I tried was to reinstall Java. I currently have Java SDK version 1.4.2_02 installed. After reinstalling the SDK didn't work, I tried installing the same version of the JRE (alongside the JDK), even though it is my understanding that the functionality in the SDK is a superset of the JRE functionality. In Internet Explorer, under the Internet Options Advanced tab, I have all the options for Java checked, including "Use Java 2 v1.4.2_02 for <applet>."
When I try to run a demo applet in IE by clicking on the associated HTML file, I get a ClassNotFoundException that shows up in the Java Console (it looks like IE is trying to use the MSJVM - is evil Microsoft causing this problem?). However, when I try to use Netscape, I get a different error message: "ClassFormatError: Bad major version number." In both cases I can tell that I've clicked on the correct HTML file (the proper heading shows up, along with a link to "The source." Also, I've checked the HTML file using Notepad). Again, I can use appletviewer and the applets work just fine - the problem only occurs within a browser.
Can somebody help me with this?
Thanks very much, Jeff