loadResource

Loads a resource file from the classpath. Only use this if you really need a File object. For most cases, use getResource() directly.

Return

The resource file (as temporary file if running from JAR).

Parameters

path

The path to the resource file.