This content has been marked as final.
Show 1 reply
-
1. Re: Wildfly 8/9 - real path to class
jameslivingston Nov 29, 2015 8:37 PM (in response to kbachl)Using Class.getResource() or Class.getResourceAsStream() is how you are supposed to access resources like that.
Do you want to get the actual filesystem path? There is no guarantee that there is an actual file on the filesystem. You can use getResource() and check whether the resulting URL is a file: URL, but it often won't be.