christian-schlichtherle / truelicense

An open source engine for license management on the Java Virtual Machine.
https://truelicense.namespace.global
Apache License 2.0
319 stars 66 forks source link

AbstractKeyStoreParam.getStream() throw FileNotFoundException #5

Closed bieryasuo closed 4 years ago

bieryasuo commented 4 years ago

I can correct load keyStore file, right get privateKey and publicKey ,but use licenseManager.store((content), new File(licensePath)), program throw FileNotFoundException, so debug to discovery the throw exception code is AbstractKeyStoreParam.getgetStream()function

public InputStream getStream() throws IOException { InputStream var1 = this.clazz.getResourceAsStream(this.resource); if (null == var1) { throw new FileNotFoundException(this.resource); } else { return var1; } }