A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Joined: Jan 06, 2005
Jan 06, 2005 10:20:00
i would like to add a properties file in the jar package and i want the class files in the package to access the properties file. i always get a file not found error. what is the way of implementing it.
Joined: May 29, 2003
Jan 06, 2005 12:22:00
Are you using Classloader.getResourceAsStream() to open the file? Since there's no actual file (it's in the JAR), you can't get to it using the normal File operations.
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: jar files
Location of Property files
How to use Properties file contents
Packaging an application
Jar files & JarOutputStream
where to keep .jar file that is called in jsp page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014