File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA/OCP Java SE 7 Programmer I & II Study Guide
this week in the
can't find correct classpath for the required properties file
Joined: Mar 09, 2006
Aug 01, 2007 02:55:00
As I've been trying to make something like:
propFile = new
but the compiler keeps complain:
: class path resource [src/props/myProperties.txt] cannot be opened because it does not exist
Any suggestion about the thing/article/stuff to read on, and then I can obtain sharp understanding to get it done myself?
Joined: Apr 11, 2007
Aug 01, 2007 03:46:00
try something like
to know where you program is trying to read the file from.
[ August 01, 2007: Message edited by: Gaurav Faujdar ]
I agree. Here's the link:
subject: can't find correct classpath for the required properties file
Unable to load properties file in Java using eclipse
Reading usersnames/passwords from file for database access
difference b/w absolute path and relative paths
how to call property file ?
I want to use java properties from an interface
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014