Skip to content

Instantly share code, notes, and snippets.

boycod3 jijeshvu07

Block or report user

Report or block jijeshvu07

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:0600e4e487741a1401b5e049cc2af6e1
private InputStream readProperties() throws IOException {
File jarPath = new File(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath());
JarFile jarFile = new JarFile(jarPath);
JarEntry entry = jarFile.getJarEntry("PROPERTY_NAME");
InputStream input = jarFile.getInputStream(entry);
return input;
}
You can’t perform that action at this time.