I\'m trying to do something like
URL clientks = com.messaging.SubscriptionManager.class.getResource( \"client.ks\" ); String path = clientks.toURI().getPath
You can get an InputStream to a resource in a jar file, but not a File. If the "thing" that ultimately reads the keystore expects a File or a path to a file, your only option is to extract it to the filesystem.
InputStream
File