This content has been marked as final. Show 2 replies
If there's a file named "package.subpack1.subpackn.DemoClassName.java" in a "demos" directory in the jar, then yes. You'd just use
Or if those dots in the name actually separate directory names, i.e. you have a "package" directory under "demos" and a "subpack1" director under that and so on, then:
InputStream code = getResourceAsStream("/demos.package.subpack1.subpackn.DemoClassName.java");
InputStream code = getResourceAsStream("/demos/package/subpack1/subpackn/DemoClassName.java");
Thanks, that seems to be what I was looking for. I am playing around with it now (I hit a few setbacks due to some differences in our jar organization).