Class.forName causing ClassFormatError when class not found
843807Aug 26 2003 — edited Aug 31 2003I'm using code in an applet that checks to see if a class is available by doing Class.forName and catching any exception. Normally this should throw a ClassNotFoundException which would be caught. However, it is throwing a ClassFormatException with the message "Truncated class file". The class is not available. Does anyone have any idea what is happening?