my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes Problem running XALAN samples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problem running XALAN samples" Watch "Problem running XALAN samples" New topic
Author

Problem running XALAN samples

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
Hi,

I downloaded xalan.jar, xercesImpl.jar and xml-apis.jar file and have added them to the classpath along with xalansamples.jar.

When i tried to run SimpleTransform, I get the following error message:

java.lang.NullPointerException
at java.util.Hashtable.get(Compiled Code)
at java.util.Properties.getProperty(Properties.java:271)
at java.lang.System.getProperty(System.java:420)
at javax.xml.transform.SecuritySupport.getSystemProperty(Unknown Source)

at javax.xml.transform.FactoryFinder.find(Unknown Source)
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
at SimpleTransform.main(SimpleTransform.java:45)

Wht is the reason for this message? Anybody any ideas??



SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Could you post "SimpleTransform.java:45" for us to see? Maybe that'll give some hints.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: Problem running XALAN samples
 
Similar Threads
Beginner's, servlet problem
Need help with this code
Why Is Tomcat 4 Doing This?
Trusted and Signed Applet still gets java.io.filepermission read error
No Suitable Driver Error