|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi All..
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 Thanks Kevin TransformerFactory tFactory; try { tFactory = TransformerFactory.newInstance(); } catch(java.lang.ClassCastException e) { e.printStackTrace(); } |
|
#2
|
|||
|
|||
|
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. Good luck. Last edited by jwinter1 : April 17th, 2001 at 08:39 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XML & Apache |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|