Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Eclipse Collections Categorically: Level up your programming game
this week in the
Open Source Projects
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Java in General
How ClassLoader finds a properties file?
ming zhu
Greenhorn
Posts: 16
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a properties file, called xxx.properties in the first search directory listed in PATH.
However, when I call ClassLoader.getSystemResourceAsStream("xxx.properties") I get a NULL.
Can someone explain to me why?
Thanks a lot!
Anonymous
Ranch Hand
Posts: 18944
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Are you sure you've set your CLASSPATH list to the correct values? (PATH doesn't mean anything much to a JVM).
kind regards
ming zhu
Greenhorn
Posts: 16
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is it possible at all to get the PATH, not the CLASSPATH, into a
string
?
Thanks a lot.
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Ant task to fill a property data based on envirnment
properties file exception
How To: Path of JBoss Server deployment folder !
properties file in eclipse
Invoking Ant on Ubuntu terminal : same commands as used on Windows doesnt work
More...