Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get absolute path of resources

807589Sep 9 2008 — edited Sep 9 2008
Hi all,

I have the project structure as following:
     ../src
            |--main
                  |--java
                        |--com
                              |--potentialprojects
                                    |-- Test.java
            |--resources
                  |--config.xml                  
So how can I get the absolute path of the config.xml file from Test.java?
Please help!

Thanks

Edited by: Ringo.CS on Sep 9, 2008 1:24 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2008
Added on Sep 9 2008
4 comments
83 views