April 12th, 2001, 11:37 AM
Can anybody tell me why the following code is returning a ClassCastException when I try to get a reference to a
TransformerFactory factory object? All jar files are setup file with xalan.jar being used on a Solaris system with jdk1.2
tFactory = TransformerFactory.newInstance();
April 17th, 2001, 08:24 PM
not a java expert
But... shouldn't it be
TransformerFactory tFactory = new TransformerFactory.newInstance();
It seems weird that your constructor is a method called 'newInstance()'. But, like I said, I'm no expert.
Last edited by jwinter1; April 17th, 2001 at 09:39 PM.