Hi, I'm newbie to Velocity. I'm trting "app_exaple1/Example.java" from the examples directory. When I executed the Example.java, it gave exception of " java.io.FileNotFoundException: velocity.properties (No such file or directory)" for "velocity.properties" though the folder was in the classpath.
Then I substitued the absolute path of the file which gave the NullPointer Exception. java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:61) at java.io.InputStreamReader.<init>(InputStreamReader.java:55) at org.apache.commons.collections.ExtendedProperties.load( ExtendedProperties.java:459) at org.apache.commons.collections.ExtendedProperties.load( ExtendedProperties.java:429) at org.apache.velocity.runtime.RuntimeInstance.setDefaultProperties( RuntimeInstance.java:318) at org.apache.velocity.runtime.RuntimeInstance.initializeProperties( RuntimeInstance.java:443) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java :225) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java :474) at org.apache.velocity.runtime.RuntimeSingleton.init( RuntimeSingleton.java:220) at org.apache.velocity.app.Velocity.init(Velocity.java:93) at Example.<init>(Example.java:50) at Example.main(Example.java:129) java.lang.NullPointerException It seems the problem is related to the path of the "velocity.properties". Any help is appreciated. -- Thanks & Regards, Anagha