Results 1 to 1 of 1
- 10-09-2009, 01:46 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 6
- Rep Power
- 0
Unable to access velocity.properties file from jar file
Hi,
I am having problem accessing the velocity.properties file within a jar. The snippet is as follows:
VelocityEngine ve = new VelocityEngine();
ve.init("config\\velocity.properties");
VelocityContext context = new VelocityContext();
the 'config' directory exists within the jar with the file inside, but I am getting:
java.io.FileNotFoundException: config\velocity.properties (The system cannot find the path specified)
Any help much appreciated!
Thanks,
Matt
Similar Threads
-
Getting access denied error while importing file using input type="file" with IE7
By sarang1 in forum Advanced JavaReplies: 6Last Post: 02-10-2011, 09:55 AM -
Reading a properties file
By peiceonly in forum New To JavaReplies: 7Last Post: 05-06-2010, 05:17 PM -
Apache Velocity template file and output locations
By mjwoodford in forum New To JavaReplies: 1Last Post: 10-05-2009, 03:59 PM -
How to getvalue from properties file into JSP
By jaga in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 04-04-2008, 08:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks