This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Properties are treated as files, and so are discovered relative to the CODEBASE, i,e., wherever in the file system the executing class is. What I usually do is bundle all my classes into a JAR file, and then put the properties file wherever I care to in the directory structure of the jar. You can also use the -jar option for the VM to "execute" the archive. ------------------ Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
Make visible what, without you, might perhaps never have been seen. - Robert Bresson
Originally posted by Dale DeMott: I'm looking to place my property file in my environment. Where should this be placed? How do I know where this class is looking for the properties file? Can someone help?? Dale
You can place the properties file anywhere in the classpath.
Joined: Nov 02, 2000
Thanks! ------------------ By failing to prepare, you are preparing to fail. Benjamin Franklin (1706 - 1790)