velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <>
Subject Trouble finding in a jar
Date Thu, 21 Jul 2011 16:37:30 GMT


I'm using Java 1.6, Velocity 1.6.2.  I have a Maven JAR project, in which
the "" gets packaged at the root of the JAR.  When I
include this JAR in other projects, I'm not able to initialize velocity,
using ...

		VelocityEngine ve = new VelocityEngine();
		final InputStream resourceStream =
		final Properties velocityProps = new Properties();
		ve.init( velocityProps );

The above dies because the "resourceStream" is null.  Any ideas how I
reference this file?  Keep in mind that it is packaged within the JAR. 
Thanks, - Dave
View this message in context:
Sent from the Velocity - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message