Wizard API updated!
Tim Boudreau has released a new version of the Swing Wizard library (version 0.997) that fixes the WizardException bug reported in JavaWorld's recent Open Source Java Project profile. The article's examples have been reworked to test out the new, improved WizardException. Thanks, Tim, for this helpful fix!
Open Source Java Projects: The Wizard API

Newsletter sign-up

Sign up for our technology specific newsletters.

Enterprise Java
View all newsletters

Email Address:

Java Tip 51: Browser upgrades

Find out how to upgrade your browser to support JDK 1.1

Perhaps you've seen one of the following messages displaying in the status bar of your browser when it tries to run a Java applet:

  • java.lang.NoClassDefFoundError
  • java.lang.NoSuchMethodError


If you guessed that these errors occurred because your browser wasn't compatible with JDK 1.1, you were right. So now what?

Choosing your browser

If you use Windows 95/NT and don't have a strong political aversion to Microsoft, your best bet is Internet Explorer 4.0. IE 4.0 is fast, 99.99 percent compatible with JDK 1.1, and integrates well in Windows. Big surprise, here.

For all other situations, you should probably go with Netscape Navigator 4.04. If you're currently running Navigator and would like to quickly upgrade to the most current version, you can use Netscape's "SmartUpdate" feature (see Resources). Simply go to Netscape's Automatic Software Upgrade Web page and follow the instructions on the screen. It's really quite simple.

Manually installing JDK 1.1 support for Windows 95/NT

If you already have Netscape Communicator 4.04 installed and want to add in 1.1 support manually (for those of you who don't trust automation!), download ftp://ftp.netscape.com/pub/communicator/smartupdate/english/windows/windows95ornt/awt/404awt.zip, unzip the file, and copy the contents to Communicator's folder, overriding the existing files. For example, if your browser is installed in C:\Netscape, the following files will be updated:

C:\Netscape\Program\jrt3240.dll
C:\Netscape\Program\Java\Classes\Ifc11.jar
C:\Netscape\Program\Java\Classes\Java40.jar
C:\Netscape\Program\Java\Classes\Jio40.jar
C:\Netscape\Program\Java\Bin\awt3240.dll
C:\Netscape\Program\Java\Bin\Jit3240.dll


This patch provides support for AWT 1.1 and JavaBeans for Windows 95/NT only. See Resources to download the 1.1 support pactch for other ports.

A note to Java developers

If you are developing applets in Java, you should always test them with Sun's HotJava 1.1.2. This all-Java browser may not be the fastest implementation of the applet container, but it is certainly the best. After you get your applets working properly with HotJava, continue testing with Netscape Navigator and Internet Explorer. You'll make all of us professional surfers a whole lot happier!

Author Bio

Andrei Cioroianu has a B.S. in Mathematics - Computer Science (1997). He is currently studying for his M.S in Artificial Intelligence at the University of Craiova in Romania.
Resources
  • Download HotJava 1.1.2 http://java.sun.com/products/hotjava/index.html
  • Download Internet Explorer 4.01 http://www.microsoft.com/ie/ie40/download/
  • Use Netscape's Smart upgrade feature to Netscape Communicator 4.04 http://cgi.netscape.com/cgi-bin/upgrade.cgi
  • Download the latest version of Netscape Communicator http://home.netscape.com/download/client_download.html?navigatorstandalone4.04
  • Download the Netscape Communicator/Navigator 4.03/4.04 support for JDK 1.1 http://developer.netscape.com/software/jdk/download.html