Looks like you want to use java.lang.Class.getResourceAsStream(String)
, see
https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html#getResourceAsStream-java.lang.String-
More Related Contents:
- Reading a resource file from within jar
- Load a resource contained in a jar
- How to access resources in JAR file?
- Add image to JAR Java
- Classpath resource within jar
- Get resource from jar
- play .wav file from jar as resource using java
- Accessing JAR resources
- How to package resources in Jar properly
- Accessing a file inside a .jar file [duplicate]
- Loading a file relative to the executing jar file
- Loading ImageIcon from JAR or file system
- Read directory inside JAR with InputStreamReader
- What causes java.lang.IncompatibleClassChangeError?
- How to make a JAR file that includes DLL files?
- Java resource as File
- How to run .jar file by double click on Windows 7 64-bit?
- Runnable JARs missing Images/Files (Resources)
- How to bundle a native library and a JNI library inside a JAR?
- Determine which JAR file a class is from
- How can I write a Java application that can update itself at runtime?
- How to get absolute path to file in /resources folder of your project
- Java: how to import a jar file from command line
- Load properties file in JAR?
- NoClassDefFoundError while trying to run my jar with java.exe -jar…what’s wrong?
- Copy directory from a jar file
- Create an Android Jar library for distribution
- Difference between extracting and packaging libraries into a jar file
- How do I unsign a jar?
- cucumber throwing java.lang.NoClassDefFoundError: io/cucumber/core/gherkin/FeatureParser